Further improve the media attached status query for accounts (#16106)
This commit is contained in:
@@ -77,7 +77,7 @@ class AccountsController < ApplicationController
|
||||
end
|
||||
|
||||
def only_media_scope
|
||||
Status.joins(:media_attachments).group(:id)
|
||||
Status.joins(:media_attachments).merge(@account.media_attachments.reorder(nil)).group(:id)
|
||||
end
|
||||
|
||||
def no_replies_scope
|
||||
|
Reference in New Issue
Block a user