about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/services/activitypub/process_status_update_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/activitypub/process_status_update_service.rb b/app/services/activitypub/process_status_update_service.rb
index e3e9b9d6a..ed10a0063 100644
--- a/app/services/activitypub/process_status_update_service.rb
+++ b/app/services/activitypub/process_status_update_service.rb
@@ -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!