1
0
Fork 0
peertube/server/helpers/custom-validators/activitypub/announce.ts
2017-12-19 10:53:16 +01:00

13 lines
321 B
TypeScript

import { isBaseActivityValid } from './misc'
import { isVideoTorrentCreateActivityValid } from './videos'
function isAnnounceActivityValid (activity: any) {
return isBaseActivityValid(activity, 'Announce') &&
(
isVideoTorrentCreateActivityValid(activity.object)
)
}
export {
isAnnounceActivityValid
}