about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-09-28 05:23:32 +0200
committermultiple creatures <dev@multiple-creature.party>2020-02-27 13:38:13 -0600
commit165f53238655bf87f27981282ca8deb71474c86f (patch)
tree9b0a123b43da3d1492cac6cd1c8c6b64e589c3c9 /app
parent3acb7ff30af0062fb0389413c723d08c541790e4 (diff)
Fix unscoped being used in the wrong place (#11987)
Regression from #11982
Diffstat (limited to 'app')
-rw-r--r--app/models/status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index 6cb30e1f0..5caed1b20 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -528,7 +528,7 @@ class Status < ApplicationRecord
     end
 
     def reblogs_map(status_ids, account_id)
-      select('reblog_of_id').where(reblog_of_id: status_ids).where(account_id: account_id).unscoped.each_with_object({}) { |s, h| h[s.reblog_of_id] = true }
+      unscoped.select('reblog_of_id').where(reblog_of_id: status_ids).where(account_id: account_id).each_with_object({}) { |s, h| h[s.reblog_of_id] = true }
     end
 
     def mutes_map(conversation_ids, account_id)