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
547 stars 58 forks source link

[Feature]: Disable downvote button on instances that do not support downvotes #1085

Open ghost opened 9 months ago

ghost commented 9 months ago

Check for open issues

What is the feature that you would like to have added?

The ability to detect when a user's instance does not support downvotes, and hide the downvote button accordingly when using an account on instances that do not support it.

Certain instances such as Beehaw.org, Lemmy.one, Reddthat.com, Lemmy.blahaj.zone, and similar have downvotes disabled, making the downvote button useless on these instances, and causes an "Unknown error has occured during the request" message when it is pressed.

Solution

A check to verify if a user's instance supports downvotes or not using the relevant API here: https://join-lemmy.org/api/interfaces/LocalSite.html#enable_downvotes

Alternatives

N/A