memmy icon indicating copy to clipboard operation
memmy copied to clipboard

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

Open ghost opened this issue 6 months ago • 0 comments

Check for open issues

  • [X] I have verified that another issue for this is not open, or it has been closed and has not been properly implemented.

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

ghost avatar Dec 13 '23 02:12 ghost