about summary refs log tree commit diff
path: root/app/lib/activitypub/activity
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-04 01:13:42 +0100
committerGitHub <noreply@github.com>2019-03-04 01:13:42 +0100
commit0e6998da3cdc0ac73845d1c3c3c4c75972ea28ee (patch)
tree497d0cd32dccab53e3ec27249d81d1d3cca9d772 /app/lib/activitypub/activity
parent3cf98aac660aaed9acd533cac07c0fc092bbec5a (diff)
Add tests for ActivityPub poll processing (#10143)
Diffstat (limited to 'app/lib/activitypub/activity')
-rw-r--r--app/lib/activitypub/activity/create.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb
index 08c46be44..fc4c45692 100644
--- a/app/lib/activitypub/activity/create.rb
+++ b/app/lib/activitypub/activity/create.rb
@@ -231,8 +231,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
       items    = @object['oneOf']
     end
 
-    Poll.new(
-      account: @account,
+    @account.polls.new(
       multiple: multiple,
       expires_at: expires_at,
       options: items.map { |item| item['name'].presence || item['content'] },