aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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}