From: Chocobozzz Date: Tue, 23 Jul 2019 08:44:48 +0000 (+0200) Subject: Fix auto blacklist X-Git-Tag: v1.4.0-rc.1~88 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7c421bb19809c4b0223d9e082d52d125fbe95f2a;p=oweals%2Fpeertube.git Fix auto blacklist --- 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: { // 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