Fix NoMethodError in ActivityPub::NoteSerializer (#10172)
parent
31a1fa3dcf
commit
a7dfbbd4fb
|
@ -122,7 +122,7 @@ class ActivityPub::NoteSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def poll_options
|
def poll_options
|
||||||
if !object.expired? && object.hide_totals?
|
if !object.poll.expired? && object.poll.hide_totals?
|
||||||
object.poll.unloaded_options
|
object.poll.unloaded_options
|
||||||
else
|
else
|
||||||
object.poll.loaded_options
|
object.poll.loaded_options
|
||||||
|
|
Loading…
Reference in New Issue