mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
parent
1060666c58
commit
d412a8d1f2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue