From c1779fba7897e5c33dae17b9b210445438556f2f Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 11 Jan 2026 21:43:02 +0000 Subject: [PATCH] fix(moderation): enforce mute threshold for anonymous users --- js/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index b1bfaeae..2151fd28 100644 --- a/js/app.js +++ b/js/app.js @@ -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; } }