diff options
author | abcang <abcang1015@gmail.com> | 2021-04-27 01:57:46 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 18:57:46 +0200 |
commit | d0fc69d7213cab03c57947cac94bad1fd9cc6dba (patch) | |
tree | 379835e0b485b6b24103ac60b5aa6855266fc070 /app/controllers/api/v1/accounts | |
parent | f78cbc0c32d5fc648c92b5e1de02105d6a8594c0 (diff) |
Further improve the media attached status query for accounts (#16106)
Diffstat (limited to 'app/controllers/api/v1/accounts')
-rw-r--r-- | app/controllers/api/v1/accounts/statuses_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/accounts/statuses_controller.rb b/app/controllers/api/v1/accounts/statuses_controller.rb index b1e478f8d..92ccb8061 100644 --- a/app/controllers/api/v1/accounts/statuses_controller.rb +++ b/app/controllers/api/v1/accounts/statuses_controller.rb @@ -42,7 +42,7 @@ class Api::V1::Accounts::StatusesController < Api::BaseController 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 pinned_scope |