mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-27 00:53:11 +00:00
00c219aa45
If a poll contains empty options (which is apparently possible on Pleroma), it is created without them. However, the poll update code doesn't filter empty options, and thus: 1. Clear known votes, as it assumes the set of options has changed 2. Errors out because it tries adding empty options, which fails validation This commit fixes that by filtering them out the same way they are filtered out at poll creation time. |
||
---|---|---|
.. | ||
fetch_featured_collection_service.rb | ||
fetch_remote_account_service.rb | ||
fetch_remote_key_service.rb | ||
fetch_remote_poll_service.rb | ||
fetch_remote_status_service.rb | ||
fetch_replies_service.rb | ||
process_account_service.rb | ||
process_collection_service.rb | ||
process_poll_service.rb |