diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-05 05:09:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 05:09:01 +0100 |
commit | ac99b3465e3e0eff44c88f7c557dcc12eafff389 (patch) | |
tree | 10fe54395782d4a9c5f4d22190bd7b1e591b9f63 /app | |
parent | 4037b5eb1eca4858c9f1a93ccafb87a6c849e65b (diff) |
Fix NoMethodError in ActivityPub::NoteSerializer (#10172)
Diffstat (limited to 'app')
-rw-r--r-- | app/serializers/activitypub/note_serializer.rb | 2 |
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 |