about summary refs log tree commit diff
path: root/app/serializers/activitypub
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-05 05:09:01 +0100
committerGitHub <noreply@github.com>2019-03-05 05:09:01 +0100
commitac99b3465e3e0eff44c88f7c557dcc12eafff389 (patch)
tree10fe54395782d4a9c5f4d22190bd7b1e591b9f63 /app/serializers/activitypub
parent4037b5eb1eca4858c9f1a93ccafb87a6c849e65b (diff)
Fix NoMethodError in ActivityPub::NoteSerializer (#10172)
Diffstat (limited to 'app/serializers/activitypub')
-rw-r--r--app/serializers/activitypub/note_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/activitypub/note_serializer.rb b/app/serializers/activitypub/note_serializer.rb
index b2a5f53e0..3a9e388a5 100644
--- a/app/serializers/activitypub/note_serializer.rb
+++ b/app/serializers/activitypub/note_serializer.rb
@@ -122,7 +122,7 @@ class ActivityPub::NoteSerializer < ActiveModel::Serializer
   end
 
   def poll_options
-    if !object.expired? && object.hide_totals?
+    if !object.poll.expired? && object.poll.hide_totals?
       object.poll.unloaded_options
     else
       object.poll.loaded_options