Fix AP flag validator

This commit is contained in:
Chocobozzz 2021-03-09 15:45:24 +01:00
parent 5a2c0f0c99
commit 43b513660b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ function isActivityValid (activity: any) {
} }
function isFlagActivityValid (activity: any) { function isFlagActivityValid (activity: any) {
return isBaseActivityValid(activity.type, 'Flag') && return isBaseActivityValid(activity, 'Flag') &&
isAbuseReasonValid(activity.content) && isAbuseReasonValid(activity.content) &&
isActivityPubUrlValid(activity.object) isActivityPubUrlValid(activity.object)
} }