From: lain Date: Thu, 19 Nov 2020 15:29:31 +0000 (+0100) Subject: Search: Only skip ordering the rum index. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=29c3c35ba1affa7e2b9b92e5798368724cc3b0f0;p=akkoma Search: Only skip ordering the rum index. --- diff --git a/lib/pleroma/activity/search.ex b/lib/pleroma/activity/search.ex index 95ac90acb..382c81118 100644 --- a/lib/pleroma/activity/search.ex +++ b/lib/pleroma/activity/search.ex @@ -28,7 +28,7 @@ defmodule Pleroma.Activity.Search 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)