mastodon / mastodon-android

Official Android app for Mastodon
https://app.joinmastodon.org/android
GNU General Public License v3.0
1.68k stars 262 forks source link

Poll results are not shown #544

Closed BANOnotIT closed 1 year ago

BANOnotIT commented 1 year ago

https://pleroma.dark-alexandr.net/objects/0dda71ed-3d2a-4883-b7be-19f45a42855a In this poll I only see my selected options while the results are not shown at all. Screenshot_2023-03-12-13-44-36-726_org.joinmastodon.android.sk.jpg

grishka commented 1 year ago

Is this a fork? I don't remember polls having square checkboxes and options being multi-line and borderless.

BANOnotIT commented 1 year ago

Yeah, this is a fork. But same thing replicates on official build from Google play v1.2.0 (50) Screenshot_2023-03-13-15-07-51-732_org.joinmastodon.android.jpg

grishka commented 1 year ago

Which server are you on? Do the results display correctly on the web?

BANOnotIT commented 1 year ago

https://mastodon.ml/@fmn@pleroma.dark-alexandr.net/109987159785026944 yeah, it's correctly interpreted in the web interface.

grishka commented 1 year ago

Hmmm. This null is probably the culprit.

image

I need to add a fallback to votes_count if voters_count is not set.

As someone who also builds his own ActivityPub server as a personal project, I must say that federating with Pleroma is not fun. It does so many things with so many subtle compatibility quirks. Actually iirc polls from Pleroma are broken in Smithereen as well sometimes.