1
0
Fork 0
forked from mirrors/akkoma

Search: Only skip ordering the rum index.

This commit is contained in:
lain 2020-11-19 16:29:31 +01:00
parent 3388bf9c9b
commit 29c3c35ba1

View file

@ -28,7 +28,7 @@ def search(user, search_query, options \\ []) do
|> maybe_restrict_author(author)
|> maybe_restrict_blocked(user)
|> Pagination.fetch_paginated(
%{"offset" => offset, "limit" => limit, "skip_order" => true},
%{"offset" => offset, "limit" => limit, "skip_order" => index_type == :rum},
:offset
)
|> maybe_fetch(user, search_query)