fix: preserve optimized hashtag ordering
This commit is contained in:
parent
2a56a02d9a
commit
b97092a97e
1 changed files with 4 additions and 4 deletions
|
|
@ -901,10 +901,10 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
||||||
where: hto.hashtag_id in ^hashtag_ids
|
where: hto.hashtag_id in ^hashtag_ids
|
||||||
)
|
)
|
||||||
|
|
||||||
if query.distinct == [] do
|
if is_nil(query.distinct) do
|
||||||
from([activity, object] in query,
|
from([_activity, object] in query,
|
||||||
distinct: [desc: activity.id],
|
distinct: [desc: object.id],
|
||||||
order_by: [desc: activity.id]
|
order_by: [desc: object.id]
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
query
|
query
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue