diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-16 15:22:39 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:52 +0100 |
commit | 20494f122186bb1bfd82f4c598c4744acea27b0c (patch) | |
tree | 097652a31ecf70491b970b6c8e06b22380ee004f /server/helpers/custom-validators/activitypub/activity.ts | |
parent | efc32059d980c51793e8e9ac0fb6a885a8026f94 (diff) | |
download | PeerTube-20494f122186bb1bfd82f4c598c4744acea27b0c.tar.gz PeerTube-20494f122186bb1bfd82f4c598c4744acea27b0c.tar.zst PeerTube-20494f122186bb1bfd82f4c598c4744acea27b0c.zip |
Server shares user videos
Diffstat (limited to 'server/helpers/custom-validators/activitypub/activity.ts')
-rw-r--r-- | server/helpers/custom-validators/activitypub/activity.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/helpers/custom-validators/activitypub/activity.ts b/server/helpers/custom-validators/activitypub/activity.ts index 08e5ae0aa..8084cf7b0 100644 --- a/server/helpers/custom-validators/activitypub/activity.ts +++ b/server/helpers/custom-validators/activitypub/activity.ts | |||
@@ -2,8 +2,7 @@ import * as validator from 'validator' | |||
2 | import { isAccountAcceptActivityValid, isAccountDeleteActivityValid, isAccountFollowActivityValid } from './account' | 2 | import { isAccountAcceptActivityValid, isAccountDeleteActivityValid, isAccountFollowActivityValid } from './account' |
3 | import { isActivityPubUrlValid } from './misc' | 3 | import { isActivityPubUrlValid } from './misc' |
4 | import { | 4 | import { |
5 | isVideoAnnounceValid, | 5 | isAnnounceValid, |
6 | isVideoChannelAnnounceValid, | ||
7 | isVideoChannelCreateActivityValid, | 6 | isVideoChannelCreateActivityValid, |
8 | isVideoChannelDeleteActivityValid, | 7 | isVideoChannelDeleteActivityValid, |
9 | isVideoChannelUpdateActivityValid, | 8 | isVideoChannelUpdateActivityValid, |
@@ -37,8 +36,7 @@ function isActivityValid (activity: any) { | |||
37 | isAccountFollowActivityValid(activity) || | 36 | isAccountFollowActivityValid(activity) || |
38 | isAccountAcceptActivityValid(activity) || | 37 | isAccountAcceptActivityValid(activity) || |
39 | isVideoFlagValid(activity) || | 38 | isVideoFlagValid(activity) || |
40 | isVideoAnnounceValid(activity) || | 39 | isAnnounceValid(activity) |
41 | isVideoChannelAnnounceValid(activity) | ||
42 | } | 40 | } |
43 | 41 | ||
44 | // --------------------------------------------------------------------------- | 42 | // --------------------------------------------------------------------------- |