j-fbriere / squawker

An open-source privacy oriented Twitter/X client
MIT License
813 stars 16 forks source link

Add an ability to block/filter out accounts #174

Open 0xdeb7ef opened 5 months ago

0xdeb7ef commented 5 months ago

Describe the problem

Twitter is now full of accounts trying to game the engagement by spamming AI generated responses under posts.

Describe the solution

Having the ability to add those accounts into a block list that prevents them from being displayed/queried at all would be helpful.

sudoshindo commented 4 months ago

I need this.

Tweet, retweet, quote tweet, if I block a specific username I don't want them to appear.

In the case of a quote tweet, both the referenced and quoted tweet should be hidden.

j-fbriere commented 3 months ago

Version v3.7.8 implements this feature. Go to Settings / General / Feed, select Exclusions in feed then add usernames.

0xdeb7ef commented 3 months ago

Just tried it out by adding a user to the list, doesn't seem to work even after restarting the app, the cryptobot still appears in the replies of a Tweet (Xeet?). Not sure what logs I could provide to help with this.

j-fbriere commented 3 months ago

Does this excluded username appears on the feed or on a tweet thread (when you select a tweet in the feed) or on a subscription/profile? The current implementation add exclusions only for the Twitter/X API feed requests. The Twitter/X API do not provide the ability to exclude users from the tweet thread requests nor for the profile/subscription tweets requests.

0xdeb7ef commented 3 months ago

The current implementation add exclusions only for the Twitter/X API feed requests. The Twitter/X API do not provide the ability to exclude users from the tweet thread requests nor for the profile/subscription tweets requests.

Ah that explains it. I guess excluding on the client side for threads would be the way to go. I don't know much Dart but if you have any pointers I could try to implement this and make a PR for it.

j-fbriere commented 3 months ago

I don't know much Dart but if you have any pointers I could try to implement this and make a PR for it.

Thanks but it's not necessary. I will implement it in a future version the filtering out from the client side of excluded usernames in tweets/retweets and replies in threads and profiles.