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:
parent
89cd127560
commit
6691c52280
10 changed files with 260 additions and 41 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue