TwitterAPI: Display cws.
[akkoma] / lib / pleroma / web / twitter_api / twitter_api.ex
index e849c9db0bbe22c47eecf1a7075b62394ace4a91..d5c5cf5cfd31b4f986433ec2ba2e9b9b050dd318 100644 (file)
@@ -213,7 +213,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
       where: fragment("to_tsvector('english', ?->'object'->>'content') @@ plainto_tsquery('english', ?)", a.data, ^query),
       limit: ^limit,
       offset: ^offset,
-      order_by: [desc: :id]
+      order_by: [desc: :inserted_at] # this one isn't indexed so psql won't take the wrong index.
 
     activities = Repo.all(q)
     activities_to_statuses(activities, %{for: user})