mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
Merge pull request #1187 from PR0M3TH3AN/fix-anon-moderation-threshold-5216028150136921299
Fix anonymous users being blocked by a single trusted mute
This commit is contained in:
1 file changed
+4
-2
@@ -338,9 +338,11 @@ class Application {
|
||||
if (
|
||||
normalized &&
|
||||
moderationService &&
|
||||
typeof moderationService.isAuthorMutedByTrusted === "function"
|
||||
typeof moderationService.getTrustedMutersForAuthor === "function"
|
||||
) {
|
||||
if (moderationService.isAuthorMutedByTrusted(normalized)) {
|
||||
const muters = moderationService.getTrustedMutersForAuthor(normalized);
|
||||
const threshold = getTrustedMuteHideThreshold();
|
||||
if (Array.isArray(muters) && muters.length >= threshold) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user