2019-01-15 11:14:12 +01:00
|
|
|
import { isActivityPubUrlValid } from './misc'
|
2020-07-01 16:05:30 +02:00
|
|
|
import { isAbuseReasonValid } from '../abuses'
|
2019-01-15 11:14:12 +01:00
|
|
|
|
|
|
|
function isFlagActivityValid (activity: any) {
|
|
|
|
return activity.type === 'Flag' &&
|
2020-07-01 16:05:30 +02:00
|
|
|
isAbuseReasonValid(activity.content) &&
|
2019-01-15 11:14:12 +01:00
|
|
|
isActivityPubUrlValid(activity.object)
|
|
|
|
}
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
export {
|
|
|
|
isFlagActivityValid
|
|
|
|
}
|