blob: 1baea4f6047c697e3eb6684f767baec852b28c74 (
plain) (
tree)
|
|
import { isActivityPubUrlValid, isBaseActivityValid } from './misc'
import { isVideoTorrentCreateActivityValid } from './videos'
function isAnnounceActivityValid (activity: any) {
console.log(activity)
return isBaseActivityValid(activity, 'Announce') &&
(
isVideoTorrentCreateActivityValid(activity.object) ||
isActivityPubUrlValid(activity.object)
)
}
export {
isAnnounceActivityValid
}
|