Fix error when processing poll updates (#17333)

Regression from #16697
lolsob-rspec
Eugen Rochko 2022-01-19 22:50:01 +01:00 committed by GitHub
parent 06b698a723
commit bfbfbf5032
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class ActivityPub::ProcessStatusUpdateService < BaseService
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!