projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e75330
)
Fix auto blacklist
author
Chocobozzz
<me@florianbigard.com>
Tue, 23 Jul 2019 08:44:48 +0000
(10:44 +0200)
committer
Chocobozzz
<chocobozzz@cpy.re>
Wed, 24 Jul 2019 08:58:16 +0000
(10:58 +0200)
server/lib/video-blacklist.ts
patch
|
blob
|
history
diff --git
a/server/lib/video-blacklist.ts
b/server/lib/video-blacklist.ts
index 9749ce2f6cbc282e2bc69100be302fd954c78699..1dd7139f76cc59f5440501bc2a67a522f435178a 100644
(file)
--- 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