mirror of https://github.com/Chocobozzz/PeerTube
Fix AP flag validator
parent
5a2c0f0c99
commit
43b513660b
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue