Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
ghost opened this issue Dec 13, 2023 · 0 comments
Open
1 task done
Labels
enhancement request for enhancement to current app or features triage report needs triaging

Comments

@ghost
Copy link

ghost commented Dec 13, 2023

Check for open issues

  • 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 ghost added enhancement request for enhancement to current app or features triage report needs triaging labels Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement request for enhancement to current app or features triage report needs triaging
Projects
None yet
Development

No branches or pull requests

0 participants