Browse Source

Don't specify order in results for now.

tags/v0.9.9
Roger Braun 6 years ago
parent
commit
f039c9c19a
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      lib/pleroma/web/twitter_api/twitter_api.ex

+ 1
- 2
lib/pleroma/web/twitter_api/twitter_api.ex View File

@@ -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})


Loading…
Cancel
Save