about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-01-19 22:50:01 +0100
committerGitHub <noreply@github.com>2022-01-19 22:50:01 +0100
commitd412a8d1f239aa93a92f420127cb3183a8bb6449 (patch)
tree2ea4df6c216e33f7f2f4eeadaa9b5bd1cb4a839a /app/services
parent1060666c583670bb3b89ed5154e61038331e30c3 (diff)
Fix error when processing poll updates (#17333)
Regression from #16697
Diffstat (limited to 'app/services')
-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!