Fix error when processing poll updates (#17333)

Regression from #16697
main
Eugen Rochko 3 years ago committed by GitHub
parent 1060666c58
commit d412a8d1f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save