Fix NoMethodError in ActivityPub::NoteSerializer (#10172)

rebase/4.0.0rc2
Eugen Rochko 2019-03-05 05:09:01 +01:00 committed by GitHub
parent 4037b5eb1e
commit ac99b3465e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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