projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
678dd4c
)
Use inserted_at as sort in search.
author
Roger Braun
<roger@rogerbraun.net>
Sun, 17 Sep 2017 09:32:24 +0000
(11:32 +0200)
committer
Roger Braun
<roger@rogerbraun.net>
Sun, 17 Sep 2017 09:32:24 +0000
(11:32 +0200)
lib/pleroma/web/twitter_api/twitter_api.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/twitter_api/twitter_api.ex
b/lib/pleroma/web/twitter_api/twitter_api.ex
index 69287b9fb775cc6561ed8d18da712941915cf769..d5c5cf5cfd31b4f986433ec2ba2e9b9b050dd318 100644
(file)
--- a/
lib/pleroma/web/twitter_api/twitter_api.ex
+++ b/
lib/pleroma/web/twitter_api/twitter_api.ex
@@
-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: :
upda
ted_at] # this one isn't indexed so psql won't take the wrong index.
+ order_by: [desc: :
inser
ted_at] # this one isn't indexed so psql won't take the wrong index.
activities = Repo.all(q)
activities_to_statuses(activities, %{for: user})