aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-23 10:44:48 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit7c421bb19809c4b0223d9e082d52d125fbe95f2a (patch)
tree751ac45e0bd9dc2fb638148f72ff4473953fe655
parent3e753302d8c911b59971c16a8018df0e1ab78465 (diff)
downloadPeerTube-7c421bb19809c4b0223d9e082d52d125fbe95f2a.tar.gz
PeerTube-7c421bb19809c4b0223d9e082d52d125fbe95f2a.tar.zst
PeerTube-7c421bb19809c4b0223d9e082d52d125fbe95f2a.zip
Fix auto blacklist
-rw-r--r--server/lib/video-blacklist.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/video-blacklist.ts b/server/lib/video-blacklist.ts
index 9749ce2f6..1dd7139f7 100644
--- a/server/lib/video-blacklist.ts
+++ b/server/lib/video-blacklist.ts
@@ -56,7 +56,7 @@ async function autoBlacklistNeeded (parameters: {
56 // Already blacklisted 56 // Already blacklisted
57 if (video.VideoBlacklist) return false 57 if (video.VideoBlacklist) return false
58 if (!CONFIG.AUTO_BLACKLIST.VIDEOS.OF_USERS.ENABLED || !user) return false 58 if (!CONFIG.AUTO_BLACKLIST.VIDEOS.OF_USERS.ENABLED || !user) return false
59 if (isRemote || isNew) return false 59 if (isRemote || isNew === false) return false
60 60
61 if (user.hasRight(UserRight.MANAGE_VIDEO_BLACKLIST) || user.hasAdminFlag(UserAdminFlag.BY_PASS_VIDEO_AUTO_BLACKLIST)) return false 61 if (user.hasRight(UserRight.MANAGE_VIDEO_BLACKLIST) || user.hasAdminFlag(UserAdminFlag.BY_PASS_VIDEO_AUTO_BLACKLIST)) return false
62 62