diff options
author | ThibG <thib@sitedethib.com> | 2019-06-05 13:28:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-05 13:28:05 +0200 |
commit | ff74aaca7cd532065f24829a3ac16de809bacf3f (patch) | |
tree | ba851bcad4bf9f657a0c2414ac3befdea9acea15 /app/lib/activitypub/activity/create.rb | |
parent | 58946fef3c05342289c1c50132996fc4fd01cf68 (diff) | |
parent | 02b56c7e1a0fa561af9a85f765ec22eee3053561 (diff) |
Merge pull request #1093 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/lib/activitypub/activity/create.rb')
-rw-r--r-- | app/lib/activitypub/activity/create.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb index 2bc33c04b..f55dd35b2 100644 --- a/app/lib/activitypub/activity/create.rb +++ b/app/lib/activitypub/activity/create.rb @@ -234,7 +234,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity @account.polls.new( multiple: multiple, expires_at: expires_at, - options: items.map { |item| item['name'].presence || item['content'] }, + options: items.map { |item| item['name'].presence || item['content'] }.compact, cached_tallies: items.map { |item| item.dig('replies', 'totalItems') || 0 } ) end |