Memmy-App / memmy

An Apollo inspired open-source iOS and Android client for Lemmy built with React-Native. Find us on the App Store and Google Play!
GNU Affero General Public License v3.0
546 stars 58 forks source link

added a switch to hide posts made by bot accounts and filtered out po… #994

Open travis-racisz opened 1 year ago

travis-racisz commented 1 year ago

PR Creator Checklist

Ensure you've checked the following before submitting your PR:

Summary

Please provide a summary of what your PR does

this PR is for issue #974

This PR adds a switch in the content section of the settings screen to allow the user to hide content made by bot accounts. In order to hide content from bot accounts I added a value in the store called hideBotContent, that has an initial value of false.

When it is checked it will filter out posts who's creator is a bot_account.

Screenshots

If the UI has been changed, include screenshots. We will not review your PR without screenshots if they are applicable.

Screenshot 2023-08-16 at 6 50 38

Test Plan

Please document the steps required to test your PR

1.) In the simulator use the search function to look up a known bot account such as redditbot. 2.) go to their profile and try to view their posts 3.) if the hide bot content option is on then none of their posts will appear on their profile