aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-03-09 15:45:24 +0100
committerChocobozzz <me@florianbigard.com>2021-03-24 18:18:40 +0100
commit43b513660bd79c72a5c567c3c1fea593886a5165 (patch)
tree4530195921440c9f3a42d5f8743650c14eb24a2e /server/helpers
parent5a2c0f0c99cfeba7b746dd520d3a029b70c3cdfa (diff)
downloadPeerTube-43b513660bd79c72a5c567c3c1fea593886a5165.tar.gz
PeerTube-43b513660bd79c72a5c567c3c1fea593886a5165.tar.zst
PeerTube-43b513660bd79c72a5c567c3c1fea593886a5165.zip
Fix AP flag validator
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/custom-validators/activitypub/activity.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/activitypub/activity.ts b/server/helpers/custom-validators/activitypub/activity.ts
index 69558e358..b5c96f6e7 100644
--- a/server/helpers/custom-validators/activitypub/activity.ts
+++ b/server/helpers/custom-validators/activitypub/activity.ts
@@ -49,7 +49,7 @@ function isActivityValid (activity: any) {
49} 49}
50 50
51function isFlagActivityValid (activity: any) { 51function isFlagActivityValid (activity: any) {
52 return isBaseActivityValid(activity.type, 'Flag') && 52 return isBaseActivityValid(activity, 'Flag') &&
53 isAbuseReasonValid(activity.content) && 53 isAbuseReasonValid(activity.content) &&
54 isActivityPubUrlValid(activity.object) 54 isActivityPubUrlValid(activity.object)
55} 55}