Skip to content

Commit

Permalink
Fix error when processing poll updates (mastodon#17333)
Browse files Browse the repository at this point in the history
Regression from mastodon#16697
  • Loading branch information
Gargron authored Jan 19, 2022
1 parent 1060666 commit d412a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/activitypub/process_status_update_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def update_media_attachments!
MediaAttachment.where(id: removed_media_attachments.map(&:id)).update_all(status_id: nil)
MediaAttachment.where(id: added_media_attachments.map(&:id)).update_all(status_id: @status.id)

@media_attachments_changed = true if removed_media_attachments.positive? || added_media_attachments.positive?
@media_attachments_changed = true if removed_media_attachments.any? || added_media_attachments.any?
end

def update_poll!
Expand Down

0 comments on commit d412a8d

Please sign in to comment.