Browse Source

Fix NoMethodError in ActivityPub::NoteSerializer (#10172)

pull/4/head
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
ac99b3465e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/serializers/activitypub/note_serializer.rb

+ 1
- 1
app/serializers/activitypub/note_serializer.rb View File

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

Loading…
Cancel
Save