mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-26 07:22:30 +00:00
Merge queries in Api::V1::FavouritesController (#4359)
This commit is contained in:
parent
e5c0aa6493
commit
a6ea7e282f
|
@ -20,9 +20,7 @@ class Api::V1::FavouritesController < Api::BaseController
|
|||
|
||||
def cached_favourites
|
||||
cache_collection(
|
||||
Status.where(
|
||||
id: results.map(&:status_id)
|
||||
),
|
||||
Status.reorder(nil).joins(:favourites).merge(results),
|
||||
Status
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue