diff options
author | abcang <abcang1015@gmail.com> | 2021-04-25 13:34:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-25 06:34:48 +0200 |
commit | 1f4751102364a3225233ad7d97a68e165c30ba64 (patch) | |
tree | b94ecf142f1bd6cb7bb74c1116a262003e15db42 /app/controllers/api/v1 | |
parent | 7f0c49c58ab75bbd6b4dc44d47a8c4ab57db9d51 (diff) |
Improve media attached status query (#16105)
Diffstat (limited to 'app/controllers/api/v1')
-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 92ccb8061..b1e478f8d 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).merge(@account.media_attachments.reorder(nil)).group(:id) + Status.joins(:media_attachments).group(:id) end def pinned_scope |