kitsune icon indicating copy to clipboard operation
kitsune copied to clipboard

Poll support

Open zeerooth opened this issue 2 years ago • 4 comments

Polls are not yet implemented in kitsune, but these activities are quite useful and popular in some AP servers, with mastodon being the most notable. It would be great to add polls to kitsune too.

Polls aren't really a native type in the AP protocol; the closest thing is probably the Question type - it doesn't support counting votes, so we'd probably have to follow mastodon on that and add custom extensions. I found a cool article that deals with just that subject: https://humberto.io/blog/mastodon_poll_in_activitypub/

There is also mastodon API documentation of course: https://docs.joinmastodon.org/methods/polls/

Related issue about the ability of possibly changing the poll answers: https://github.com/kitsune-soc/kitsune/issues/26

zeerooth avatar Sep 26 '23 08:09 zeerooth

In mastodon there’s also the issue of updating the text of a poll - outside of the poll itself - resetting the poll results entirely. If this can be avoided in Kitsune that would be a great improvement.

erlend-sh avatar Sep 26 '23 11:09 erlend-sh

In mastodon there’s also the issue of updating the text of a poll - outside of the poll itself - resetting the poll results entirely.

Related: mastodon/mastodon#24997

I'd argue that it's a sensible measure to reset the votes when the post is updated. But on the other hand, if you assume malice in the post author, they could do a lot of dreadful things besides completely changing the context of a poll, especially if they administer the remote server. So, such a measure is only mitigation and the situation might not be very different from the status quo even without it. Maybe the edit history feature alone suffices, at least in casual uses (which the poll feature on social media is for in general, IMO)?

tesaguri avatar Sep 26 '23 13:09 tesaguri

As long as votes can be changed/retracted by respondents, I don’t think that’s a problem, seeing as changes to the poll post will send updates to poll participants.

That, combined with post/poll changelogs means that changing the contents of a poll to misconstrue the results is no different than simply drawing a fake poll graphic, except in the former case this malpractice is immediately identifiable.

erlend-sh avatar Sep 26 '23 13:09 erlend-sh

I'd argue that it's a sensible measure to reset the votes when the post is updated

I think doing something similar to what Mastodon does with updated reposts is could be sufficient here. Sending out a notification to all poll participants, combined with the ability to retract/change posts

aumetra avatar Sep 26 '23 14:09 aumetra