projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d1f8dc
)
Don't specify order in results for now.
author
Roger Braun
<roger@rogerbraun.net>
Sat, 16 Sep 2017 12:40:53 +0000
(14:40 +0200)
committer
Roger Braun
<roger@rogerbraun.net>
Sat, 16 Sep 2017 12:40:53 +0000
(14:40 +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 e849c9db0bbe22c47eecf1a7075b62394ace4a91..c1a3c887c7a6d4502a8520cece9a3a440126c3de 100644
(file)
--- a/
lib/pleroma/web/twitter_api/twitter_api.ex
+++ b/
lib/pleroma/web/twitter_api/twitter_api.ex
@@
-212,8
+212,7
@@
defmodule Pleroma.Web.TwitterAPI.TwitterAPI 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})