forked from YokaiRick/akkoma
Activity search: Fix order of results
Greatly speeds up the search for RUM.
This commit is contained in:
parent
42a386eb9f
commit
3388bf9c9b
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@ def search(user, search_query, options \\ []) do
|
|||
|> maybe_restrict_local(user)
|
||||
|> maybe_restrict_author(author)
|
||||
|> maybe_restrict_blocked(user)
|
||||
|> Pagination.fetch_paginated(%{"offset" => offset, "limit" => limit}, :offset)
|
||||
|> Pagination.fetch_paginated(
|
||||
%{"offset" => offset, "limit" => limit, "skip_order" => true},
|
||||
:offset
|
||||
)
|
||||
|> maybe_fetch(user, search_query)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue