Unverified Commit ac99b346 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub

Fix NoMethodError in ActivityPub::NoteSerializer (#10172)

parent 4037b5eb
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment