2017-11-20 09:43:39 +01:00
|
|
|
import { isBaseActivityValid } from './misc'
|
|
|
|
import { isVideoTorrentAddActivityValid } from './videos'
|
|
|
|
import { isVideoChannelCreateActivityValid } from './video-channels'
|
|
|
|
|
2017-11-23 14:19:55 +01:00
|
|
|
function isAnnounceActivityValid (activity: any) {
|
2017-11-20 09:43:39 +01:00
|
|
|
return isBaseActivityValid(activity, 'Announce') &&
|
|
|
|
(
|
|
|
|
isVideoChannelCreateActivityValid(activity.object) ||
|
|
|
|
isVideoTorrentAddActivityValid(activity.object)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export {
|
2017-11-23 14:19:55 +01:00
|
|
|
isAnnounceActivityValid
|
2017-11-20 09:43:39 +01:00
|
|
|
}
|