Open mjholub opened 1 year ago
Can not reproduce. Please link me a post where the problem occurs.
Related issue (I think) :
I'm having weird results for polls and a wrong number of participants after answering to polls while connected to my account on Akkoma :
This issue seems to be present when using Tusky with Pleroma as well.
When I view a poll that came from a federated Mastodon instance, Pleroma (and I assume also Akkoma) seems to be sending down the correct votes_count
but an incorrect voters_count
(0 or 1 in all occurrences I've observed so far). Since Tusky defaults to using total voters to calculate poll percentages, these are obviously coming out to incorrect percentages.
However, when I'm viewing a poll that originated on a Pleroma or Akkoma instance, the number of voters is correct and percentages are calculated properly.
There's a case to be made here that this is a bug in either Mastodon or Pleroma/Akkoma with the voter count not being federated properly.
The decision was made for Tusky to favor total voters over total votes at some point (https://github.com/tuskyapp/Tusky/commit/cf782f039f5b363141877228c911f3d7132a6492) for what I assume are good reasons, but reverting this back to using total votes would fix the issue for Pleroma and Akkoma users.
EDIT: I've confirmed that using total vote count fixes the issue for me after building and testing it locally.
EDIT 2: This seems to be the same issue as #2625
If a poll has no votes, instead of the results being 50%:50%, they are 2147483647% each. Seems to be related to #2802. Unsure if it only occurs with closed polls.
Tusky Version: 19.0.94
Android Version: 11
Android Device: Xiaomi Redmi 5 Plus
MastodonAkkoma instance (if applicable): fedi.absturztau.be[x] I searched or browsed the repo’s other issues to ensure this is not a duplicate.