[BUG] Filters being ignored

https://lemmy.world/post/42641920

[BUG] Filters being ignored - Lemmy.World

## Bug Report Describe the issue: It seems filters are not applying now, or possibly just not being respected. It may have to do with capitalization- it seems posts containing filtered words are allowed through if the first letter is capitalized. Steps to reproduce: 1. Add “trump, Trump” to the filter list. 2. Browse All. — ### Device Information - App Version: 1.0.388 (388) - Platform: android - OS Version: AP3A.240905.015.A2.G998USQSJHZAA ### Modified Settings The following settings have been changed from defaults: - isSwipeEnabled: false (default: true) - alwaysShowInstance: true (default: false) - isSwipeNavigationEnabled: false (default: true) - shouldLimitCardImages: true (default: false) - shouldMarkPostsOnScroll: true (default: false) - shouldHideReadPosts: true (default: false) - shouldShowPageNumbers: true (default: false) - isTopBarFixed: true (default: false) - showFullVotes: true (default: false) - shouldAlwaysDisplayAvatars: true (default: false) - shouldOpenYoutube: false (default: true) - defaultPostSort: TopTwelveHour (default: Active) - defaultCommentSort: Top (default: Hot) - postActions: [comment, save, read, crosspost] (default: [comment, save, none, crosspost]) - shouldVideoAutoplay: never (default: always) - shouldLoadAllComments: true (default: false)

Currently it’s filtering with case-sensitivity. So if you have “Trump” and a post title has “trump” then it won’t be filtered. I think there are select cases where case sensitivity is helpful but I think generally, it’s better to have it not be case sensitive.
The issue is that the case sensitivity is not working either. As I mentioned in the report, adding “trump, Trump” will not filter posts containing “Trump”.

When I was testing before, I only had one keyword and I didn’t run into I think the problem you’re having. The filter list is comma seperatef but if you have a space after the commas then the word does not get filtered. It does get added to the list of keywords, which is confusing.

Also, if you add a word with a comma and a space before it, it’s saved as a comma and two spaces in the filter text field; when you go back into the page.

Hi, thank you for the report. I’m going to add a setting in the next release to control if keyword filters should be case insensitive or not. Cheers!