n1k0 / tooty

An alternative multi-accounts Web client for Mastodon.
https://n1k0.github.io/tooty/v2/
157 stars 9 forks source link

Add the ability to filter the main timeline based on regexps #183

Open davidbgk opened 7 years ago

davidbgk commented 7 years ago

Great user experience so far 👍 @n1k0 ! One thing I miss though is the ability to filter the main timeline based on regular expressions:

capture d ecran 2017-05-26 a 15 21 29

Here I filter on hashtags I don't want to see because of the flood it generates. Is there a way to do that I didn't see yet?

n1k0 commented 7 years ago

I was reluctant to implement client-side filtering (mostly because we'd have to filter some html tag soup, as mastodon statuses are generated html and there's no raw text source), but I've just inspected the official Web client and it seems there's an undocumented API for managing server-side filtering and notifications:

We might just to use this endpoint.

davidbgk commented 7 years ago

Nice, tempting to use it even if undocumented 😉

Now the hard part will be to find where to put it on the UI…

n1k0 commented 7 years ago

I think we could reuse the same as in the official client, on top of the Home timeline?

n1k0 commented 7 years ago

This is discussed in https://github.com/tootsuite/mastodon/issues/3529. Any input there would be appreciated.