diff options
author | Chocobozzz <me@florianbigard.com> | 2021-03-05 13:49:58 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-03-24 18:18:40 +0100 |
commit | 67f87b66fe99a5982580b1f555245abde1c03380 (patch) | |
tree | 5c7b4e7972c06c10b513c707fa4dd57fa63de074 /server/helpers/custom-validators/activitypub/view.ts | |
parent | 452b3bea082481b84537e55c7cedc1e24860d543 (diff) | |
download | PeerTube-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.ts | 13 |
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 @@ | |||
1 | import { isActivityPubUrlValid } from './misc' | ||
2 | |||
3 | function isViewActivityValid (activity: any) { | ||
4 | return activity.type === 'View' && | ||
5 | isActivityPubUrlValid(activity.actor) && | ||
6 | isActivityPubUrlValid(activity.object) | ||
7 | } | ||
8 | |||
9 | // --------------------------------------------------------------------------- | ||
10 | |||
11 | export { | ||
12 | isViewActivityValid | ||
13 | } | ||