aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/activitypub/view.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-03-05 13:49:58 +0100
committerChocobozzz <me@florianbigard.com>2021-03-24 18:18:40 +0100
commit67f87b66fe99a5982580b1f555245abde1c03380 (patch)
tree5c7b4e7972c06c10b513c707fa4dd57fa63de074 /server/helpers/custom-validators/activitypub/view.ts
parent452b3bea082481b84537e55c7cedc1e24860d543 (diff)
downloadPeerTube-67f87b66fe99a5982580b1f555245abde1c03380.tar.gz
PeerTube-67f87b66fe99a5982580b1f555245abde1c03380.tar.zst
PeerTube-67f87b66fe99a5982580b1f555245abde1c03380.zip
Refactor a little bit AP validators
Diffstat (limited to 'server/helpers/custom-validators/activitypub/view.ts')
-rw-r--r--server/helpers/custom-validators/activitypub/view.ts13
1 files changed, 0 insertions, 13 deletions
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 @@
1import { isActivityPubUrlValid } from './misc'
2
3function isViewActivityValid (activity: any) {
4 return activity.type === 'View' &&
5 isActivityPubUrlValid(activity.actor) &&
6 isActivityPubUrlValid(activity.object)
7}
8
9// ---------------------------------------------------------------------------
10
11export {
12 isViewActivityValid
13}