From f039c9c19a95e414a641c5209e11b946d939dcfc Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sat, 16 Sep 2017 14:40:53 +0200 Subject: [PATCH] Don't specify order in results for now. --- lib/pleroma/web/twitter_api/twitter_api.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pleroma/web/twitter_api/twitter_api.ex b/lib/pleroma/web/twitter_api/twitter_api.ex index e849c9db0..c1a3c887c 100644 --- a/lib/pleroma/web/twitter_api/twitter_api.ex +++ b/lib/pleroma/web/twitter_api/twitter_api.ex @@ -212,8 +212,7 @@ def search(user, %{"q" => query} = params) do where: fragment("?->>'type' = 'Create'", a.data), where: fragment("to_tsvector('english', ?->'object'->>'content') @@ plainto_tsquery('english', ?)", a.data, ^query), limit: ^limit, - offset: ^offset, - order_by: [desc: :id] + offset: ^offset activities = Repo.all(q) activities_to_statuses(activities, %{for: user})