diff options
author | Chocobozzz <me@florianbigard.com> | 2021-03-09 15:45:24 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-03-24 18:18:40 +0100 |
commit | 43b513660bd79c72a5c567c3c1fea593886a5165 (patch) | |
tree | 4530195921440c9f3a42d5f8743650c14eb24a2e /server | |
parent | 5a2c0f0c99cfeba7b746dd520d3a029b70c3cdfa (diff) | |
download | PeerTube-43b513660bd79c72a5c567c3c1fea593886a5165.tar.gz PeerTube-43b513660bd79c72a5c567c3c1fea593886a5165.tar.zst PeerTube-43b513660bd79c72a5c567c3c1fea593886a5165.zip |
Fix AP flag validator
Diffstat (limited to 'server')
-rw-r--r-- | server/helpers/custom-validators/activitypub/activity.ts | 2 |
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 | ||
51 | function isFlagActivityValid (activity: any) { | 51 | function 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 | } |