Unverified Commit d412a8d1 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix error when processing poll updates (#17333)

Regression from #16697
parent 1060666c
......@@ -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?
def update_poll!
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment