From 67f87b66fe99a5982580b1f555245abde1c03380 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 Mar 2021 13:49:58 +0100 Subject: Refactor a little bit AP validators --- server/helpers/custom-validators/activitypub/view.ts | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 server/helpers/custom-validators/activitypub/view.ts (limited to 'server/helpers/custom-validators/activitypub/view.ts') diff --git a/server/helpers/custom-validators/activitypub/view.ts b/server/helpers/custom-validators/activitypub/view.ts deleted file mode 100644 index 41d16469f..000000000 --- a/server/helpers/custom-validators/activitypub/view.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { isActivityPubUrlValid } from './misc' - -function isViewActivityValid (activity: any) { - return activity.type === 'View' && - isActivityPubUrlValid(activity.actor) && - isActivityPubUrlValid(activity.object) -} - -// --------------------------------------------------------------------------- - -export { - isViewActivityValid -} -- cgit v1.2.3