1
0
Fork 0

Fix auto blacklist

This commit is contained in:
Chocobozzz 2019-07-23 10:44:48 +02:00 committed by Chocobozzz
parent 3e753302d8
commit 7c421bb198

View file

@ -56,7 +56,7 @@ async function autoBlacklistNeeded (parameters: {
// Already blacklisted
if (video.VideoBlacklist) return false
if (!CONFIG.AUTO_BLACKLIST.VIDEOS.OF_USERS.ENABLED || !user) return false
if (isRemote || isNew) return false
if (isRemote || isNew === false) return false
if (user.hasRight(UserRight.MANAGE_VIDEO_BLACKLIST) || user.hasAdminFlag(UserAdminFlag.BY_PASS_VIDEO_AUTO_BLACKLIST)) return false