diff options
author | ThibG <thib@sitedethib.com> | 2019-11-30 18:13:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-30 18:13:53 +0100 |
commit | 7f6315841c98a1eee6cb57171a91a88f5c5343df (patch) | |
tree | 02bc3eae22390ba267410c3e134067669ad3c805 /app/services | |
parent | 93b8aec7b7cd6af1b6ef6385cfe138fb32dee6e9 (diff) | |
parent | b509b8812a8f08f59f3b0303f7d8e98de86e3590 (diff) |
Merge pull request #1249 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/activitypub/process_poll_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/activitypub/process_poll_service.rb b/app/services/activitypub/process_poll_service.rb index cb4a0d460..903b6a78a 100644 --- a/app/services/activitypub/process_poll_service.rb +++ b/app/services/activitypub/process_poll_service.rb @@ -30,7 +30,7 @@ class ActivityPub::ProcessPollService < BaseService voters_count = @json['votersCount'] - latest_options = items.map { |item| item['name'].presence || item['content'] } + latest_options = items.map { |item| item['name'].presence || item['content'] }.compact # If for some reasons the options were changed, it invalidates all previous # votes, so we need to remove them |