fix(moderation): enforce mute threshold for anonymous users

This commit is contained in:
google-labs-jules[bot] committed 2026-01-11 21:43:02 +00:00
1 parent c4618c307b
commit c1779fba78
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;
}
}