-async function autoBlacklistVideoIfNeeded (video: VideoModel, user?: UserModel, transaction?: Transaction) {
+async function autoBlacklistVideoIfNeeded (parameters: {
+ video: MVideoWithBlacklistLight,
+ user?: MUser,
+ isRemote: boolean,
+ isNew: boolean,
+ notify?: boolean,
+ transaction?: Transaction
+}) {
+ const { video, user, isRemote, isNew, notify = true, transaction } = parameters