1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Add filter hooks tests

This commit is contained in:
Chocobozzz 2019-07-22 11:14:58 +02:00 committed by Chocobozzz
parent 89cd127560
commit 6691c52280
10 changed files with 260 additions and 41 deletions

View file

@ -48,9 +48,9 @@ export {
async function processCreateVideo (activity: ActivityCreate) {
const videoToCreateData = activity.object as VideoTorrentObject
const { video, created } = await getOrCreateVideoAndAccountAndChannel({ videoObject: videoToCreateData })
const { video, created, autoBlacklisted } = await getOrCreateVideoAndAccountAndChannel({ videoObject: videoToCreateData })
if (created) Notifier.Instance.notifyOnNewVideo(video)
if (created && !autoBlacklisted) Notifier.Instance.notifyOnNewVideo(video)
return video
}