From fc8fdf7bc3ba3534fc99dea44bdd379e72870634 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 13 May 2025 17:49:42 +0300 Subject: [PATCH] fix filters not being case-insensitive --- src/services/status_parser/status_parser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/status_parser/status_parser.js b/src/services/status_parser/status_parser.js index c9e15552d..b8a98cf82 100644 --- a/src/services/status_parser/status_parser.js +++ b/src/services/status_parser/status_parser.js @@ -13,7 +13,8 @@ export const muteFilterHits = (muteFilters, status) => { if (expires !== null && expires < Date.now()) return false switch (type) { case 'word': { - if (statusText.includes(value) || statusSummary.includes(value)) { + const lowercaseValue = value.toLowerCase() + if (statusText.toLowerCase().includes(lowercaseValue) || statusSummary.toLowerCase().includes(lowercaseValue)) { return { hide, name } } break