diff options
Diffstat (limited to 'server/lib/video-blacklist.ts')
-rw-r--r-- | server/lib/video-blacklist.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/lib/video-blacklist.ts b/server/lib/video-blacklist.ts index 32b1a28fa..9bc996f5a 100644 --- a/server/lib/video-blacklist.ts +++ b/server/lib/video-blacklist.ts | |||
@@ -9,8 +9,9 @@ import { UserAdminFlag } from '../../shared/models/users/user-flag.model' | |||
9 | import { Hooks } from './plugins/hooks' | 9 | import { Hooks } from './plugins/hooks' |
10 | 10 | ||
11 | async function autoBlacklistVideoIfNeeded (video: VideoModel, user?: UserModel, transaction?: Transaction) { | 11 | async function autoBlacklistVideoIfNeeded (video: VideoModel, user?: UserModel, transaction?: Transaction) { |
12 | const doAutoBlacklist = await Hooks.wrapPromise( | 12 | const doAutoBlacklist = await Hooks.wrapPromiseFun( |
13 | autoBlacklistNeeded({ video, user }), | 13 | autoBlacklistNeeded, |
14 | { video, user }, | ||
14 | 'filter:video.auto-blacklist.result' | 15 | 'filter:video.auto-blacklist.result' |
15 | ) | 16 | ) |
16 | 17 | ||