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