mastodon/app/services/activitypub
ThibG 00c219aa45 Fix empty poll options not being filtered on remote poll update (#12484)
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.
2019-11-26 22:46:31 +01:00
..
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 Add profile directory to web UI (#11688) 2019-08-30 00:14:36 +02:00
process_collection_service.rb
process_poll_service.rb Fix empty poll options not being filtered on remote poll update (#12484) 2019-11-26 22:46:31 +01:00