mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-23 21:15:05 +01:00
Fix unscoped being used in the wrong place (#11987)
Regression from #11982
This commit is contained in:
parent
de5305a3a5
commit
50af41a00d
@ -305,7 +305,7 @@ class Status < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def reblogs_map(status_ids, account_id)
|
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
|
end
|
||||||
|
|
||||||
def mutes_map(conversation_ids, account_id)
|
def mutes_map(conversation_ids, account_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user