thunder-app / thunder

Thunder - An open-source cross-platform Lemmy client for iOS and Android built with Flutter
https://thunderapp.dev
GNU Affero General Public License v3.0
787 stars 68 forks source link

Ability to see who upvoted and downoved a post #1422

Open K4LCIFER opened 5 months ago

K4LCIFER commented 5 months ago

Is Your Feature Request Related to a Problem?

Currently, one can only see the total counts, but cannot see the details of who voted. This could potentially be helpful in situations where one is unsure if bots have been mass downvoting, or upvoting a post.

Feature Description

I propose adding some method to see who voted on the post and how they voted. Perhaps hidden in a menu for the post, or a long press, a new view could pop up with a list of "upvoters" and "downvoters".

Alternative Solutions

No response

Additional Context

I wasn't able to find any reference to this sort of information in the Lemmy API, so this could depend on an upstream change. I know that this data would exist in a Lemmy server's database, so it is certainly possible.

micahmo commented 5 months ago

I think you are spot on that this info is available in the database but not exposed via the API.

This is the closest thing I could find, and it only allows mods (in addition to admins) to see votes.

https://github.com/LemmyNet/lemmy/pull/4392

I get the impression that allowing anyone to see votes is not something they plan to add, but we can keep this issue open to track it just in case!

hjiangsu commented 5 months ago

Like @micahmo said, this is feature that if implemented, would only be available to mods/admins because of restrictions!

For devs, this endpoint is already implemented in our dart API: https://github.com/thunder-app/lemmy_api_client/blob/master/lib/src/v3/api/post/post.dart#L346