diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-22 11:14:58 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 6691c52280363fc42f7865230ebb3741f02fff23 (patch) | |
tree | 071f9a4d7814c46dcfec100268cb0a0cc76e5204 /server/lib/activitypub/process/process-create.ts | |
parent | 89cd12756035a146bbcc4db78cd3cd64f2f3d88d (diff) | |
download | PeerTube-6691c52280363fc42f7865230ebb3741f02fff23.tar.gz PeerTube-6691c52280363fc42f7865230ebb3741f02fff23.tar.zst PeerTube-6691c52280363fc42f7865230ebb3741f02fff23.zip |
Add filter hooks tests
Diffstat (limited to 'server/lib/activitypub/process/process-create.ts')
-rw-r--r-- | server/lib/activitypub/process/process-create.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/process/process-create.ts b/server/lib/activitypub/process/process-create.ts index daf846513..b9f584aa5 100644 --- a/server/lib/activitypub/process/process-create.ts +++ b/server/lib/activitypub/process/process-create.ts | |||
@@ -48,9 +48,9 @@ export { | |||
48 | async function processCreateVideo (activity: ActivityCreate) { | 48 | async function processCreateVideo (activity: ActivityCreate) { |
49 | const videoToCreateData = activity.object as VideoTorrentObject | 49 | const videoToCreateData = activity.object as VideoTorrentObject |
50 | 50 | ||
51 | const { video, created } = await getOrCreateVideoAndAccountAndChannel({ videoObject: videoToCreateData }) | 51 | const { video, created, autoBlacklisted } = await getOrCreateVideoAndAccountAndChannel({ videoObject: videoToCreateData }) |
52 | 52 | ||
53 | if (created) Notifier.Instance.notifyOnNewVideo(video) | 53 | if (created && !autoBlacklisted) Notifier.Instance.notifyOnNewVideo(video) |
54 | 54 | ||
55 | return video | 55 | return video |
56 | } | 56 | } |