Skip to content

Commit d8ce95c

Browse files
authored
Fix NoMethodError in ActivityPub::NoteSerializer (mastodon#10172)
1 parent d580295 commit d8ce95c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/serializers/activitypub/note_serializer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def local?
122122
end
123123

124124
def poll_options
125-
if !object.expired? && object.hide_totals?
125+
if !object.poll.expired? && object.poll.hide_totals?
126126
object.poll.unloaded_options
127127
else
128128
object.poll.loaded_options

0 commit comments

Comments
 (0)