diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/custom-validators/activitypub/videos.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/helpers/custom-validators/activitypub/videos.ts b/server/helpers/custom-validators/activitypub/videos.ts index 8486297ad..728511e3d 100644 --- a/server/helpers/custom-validators/activitypub/videos.ts +++ b/server/helpers/custom-validators/activitypub/videos.ts | |||
@@ -58,9 +58,10 @@ function isVideoTorrentObjectValid (video: any) { | |||
58 | } | 58 | } |
59 | 59 | ||
60 | function isVideoFlagValid (activity: any) { | 60 | function isVideoFlagValid (activity: any) { |
61 | return isBaseActivityValid(activity, 'Flag') && | 61 | return isBaseActivityValid(activity, 'Create') && |
62 | isVideoAbuseReasonValid(activity.content) && | 62 | activity.object.type === 'Flag' && |
63 | isActivityPubUrlValid(activity.object) | 63 | isVideoAbuseReasonValid(activity.object.content) && |
64 | isActivityPubUrlValid(activity.object.object) | ||
64 | } | 65 | } |
65 | 66 | ||
66 | function isAnnounceValid (activity: any) { | 67 | function isAnnounceValid (activity: any) { |