about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-09-28 05:23:32 +0200
committerGitHub <noreply@github.com>2019-09-28 05:23:32 +0200
commit50af41a00daaa99150b0fa92be0c9bde44ced273 (patch)
treefc0420b142fba9c798ab57fd021a44616401c05c
parentde5305a3a5b2c2c3e92f6e92ad8c72742c501e73 (diff)
Fix unscoped being used in the wrong place (#11987)
Regression from #11982
-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 6afaa14d1..5e7474577 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -305,7 +305,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)