1 import { isActivityPubUrlValid } from './misc'
2 import { isVideoAbuseReasonValid } from '../video-abuses'
4 function isFlagActivityValid (activity: any) {
5 return activity.type === 'Flag' &&
6 isVideoAbuseReasonValid(activity.content) &&
7 isActivityPubUrlValid(activity.object)
10 // ---------------------------------------------------------------------------