From d95d15598847c7f020aa056e7e6e0c02d2bbf732 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 1 Jul 2020 16:05:30 +0200 Subject: Use 3 tables to represent abuses --- server/helpers/custom-validators/activitypub/flag.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/helpers/custom-validators/activitypub') diff --git a/server/helpers/custom-validators/activitypub/flag.ts b/server/helpers/custom-validators/activitypub/flag.ts index 6452e297c..dc90b3667 100644 --- a/server/helpers/custom-validators/activitypub/flag.ts +++ b/server/helpers/custom-validators/activitypub/flag.ts @@ -1,9 +1,9 @@ import { isActivityPubUrlValid } from './misc' -import { isVideoAbuseReasonValid } from '../video-abuses' +import { isAbuseReasonValid } from '../abuses' function isFlagActivityValid (activity: any) { return activity.type === 'Flag' && - isVideoAbuseReasonValid(activity.content) && + isAbuseReasonValid(activity.content) && isActivityPubUrlValid(activity.object) } -- cgit v1.2.3