Don't specify order in results for now.
This commit is contained in:
parent
5d1f8dcd1c
commit
f039c9c19a
|
@ -212,8 +212,7 @@ def search(user, %{"q" => query} = params) do
|
||||||
where: fragment("?->>'type' = 'Create'", a.data),
|
where: fragment("?->>'type' = 'Create'", a.data),
|
||||||
where: fragment("to_tsvector('english', ?->'object'->>'content') @@ plainto_tsquery('english', ?)", a.data, ^query),
|
where: fragment("to_tsvector('english', ?->'object'->>'content') @@ plainto_tsquery('english', ?)", a.data, ^query),
|
||||||
limit: ^limit,
|
limit: ^limit,
|
||||||
offset: ^offset,
|
offset: ^offset
|
||||||
order_by: [desc: :id]
|
|
||||||
|
|
||||||
activities = Repo.all(q)
|
activities = Repo.all(q)
|
||||||
activities_to_statuses(activities, %{for: user})
|
activities_to_statuses(activities, %{for: user})
|
||||||
|
|
Loading…
Reference in New Issue