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:
thePR0M3TH3AN authored and GitHub committed 2026-01-11 16:44:28 -05:00
commit 0fc78fefb8
1 file changed
+4 -2
+4 -2
View File
@@ -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;
}
}