From 43b513660bd79c72a5c567c3c1fea593886a5165 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 9 Mar 2021 15:45:24 +0100 Subject: [PATCH] Fix AP flag validator --- server/helpers/custom-validators/activitypub/activity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { } function isFlagActivityValid (activity: any) { - return isBaseActivityValid(activity.type, 'Flag') && + return isBaseActivityValid(activity, 'Flag') && isAbuseReasonValid(activity.content) && isActivityPubUrlValid(activity.object) }