Blocks & Filters => hide posts that contain keywords you specify - special characters in keyword

2 months ago by A_norny_mousse to c/piefed_help

Some poster labels some of their posts, always starting with [word].

I would like to filter these posts out, but if I add [word] or \[word\] as a filter it does not work; only word works as desired, but I find that too broad and would like to add the brackets. Is it possible?

rimu 4 points 2 months ago

In my testing [word] works as desired. Can you give me the specific word and a sample post?

path: 0 25456648, hotness: undefined, score: 4, children: 3
A_norny_mousse 3 points 2 months ago path: 0 25456648 25456698, hotness: undefined, score: 3, children: 2
rimu 4 points 2 months ago path: 0 25456648 25456698 25456733, hotness: undefined, score: 4, children: 1
A_norny_mousse 5 points 2 months ago

Yes it's about the home feed!

BTW I just edited my previous comment; it seemed to work once, now it doesn't again.

Removing the [] makes it work again.

Just as originally stated.

path: 0 25456648 25456698 25456733 25456780, hotness: undefined, score: 5, children: 0
A_norny_mousse 2 points 2 months ago

I tested again with a few more variations: [Mimi] "[Mimi]" \[Mimi\] "Mimi" - only Mimi works as desired. I'd love to know how exactly this filter is coded, can I look this up somewhere? I mean obviously in the sourcecode, but where exactly?

path: 0 25474636, hotness: undefined, score: 2, children: 0
piefed_help
piefed_help

@piefed.social

login for more options
3062
308
110

A community to help each other with PieFed.

Rules

Be kind! We're all learning.

Once a bug has been confirmed, someone please add it to the codeberg issue tracker or it'll be forgotten about.

go to feed...