diff options
Diffstat (limited to 'server/lib/video-blacklist.ts')
-rw-r--r-- | server/lib/video-blacklist.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/lib/video-blacklist.ts b/server/lib/video-blacklist.ts index bdbcffda6..f6c66b6dd 100644 --- a/server/lib/video-blacklist.ts +++ b/server/lib/video-blacklist.ts | |||
@@ -17,6 +17,7 @@ import { sendDeleteVideo } from './activitypub/send' | |||
17 | import { federateVideoIfNeeded } from './activitypub/videos' | 17 | import { federateVideoIfNeeded } from './activitypub/videos' |
18 | import { Notifier } from './notifier' | 18 | import { Notifier } from './notifier' |
19 | import { Hooks } from './plugins/hooks' | 19 | import { Hooks } from './plugins/hooks' |
20 | import { LiveManager } from './live-manager' | ||
20 | 21 | ||
21 | async function autoBlacklistVideoIfNeeded (parameters: { | 22 | async function autoBlacklistVideoIfNeeded (parameters: { |
22 | video: MVideoWithBlacklistLight | 23 | video: MVideoWithBlacklistLight |
@@ -73,6 +74,10 @@ async function blacklistVideo (videoInstance: MVideoAccountLight, options: Video | |||
73 | await sendDeleteVideo(videoInstance, undefined) | 74 | await sendDeleteVideo(videoInstance, undefined) |
74 | } | 75 | } |
75 | 76 | ||
77 | if (videoInstance.isLive) { | ||
78 | LiveManager.Instance.stopSessionOf(videoInstance.id) | ||
79 | } | ||
80 | |||
76 | Notifier.Instance.notifyOnVideoBlacklist(blacklist) | 81 | Notifier.Instance.notifyOnVideoBlacklist(blacklist) |
77 | } | 82 | } |
78 | 83 | ||