Fix where scope joins error

This commit is contained in:
KMY 2023-03-21 18:00:58 +09:00
parent afc808ca54
commit ca3bfbadcb

View file

@ -24,7 +24,7 @@ module AccountLimitable
end end
def scope_status_mentioned(status) def scope_status_mentioned(status)
status.active_mentions.where.joins(:account).merge(Account.local).select('account_id AS id').reorder(nil) status.active_mentions.joins(:account).merge(Account.local).select('account_id AS id').reorder(nil)
end end
# TODO: not work # TODO: not work