flag.ts 398 B

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