1
0
Fork 0
forked from mirrors/akkoma

twitterapi: use order constraint to force descending order

This commit is contained in:
William Pitcock 2019-05-07 19:30:51 +00:00
parent 6020ff3fb6
commit d64c3b604e

View file

@ -182,6 +182,7 @@ def dm_timeline(%{assigns: %{user: user}} = conn, params) do
|> Map.put("blocking_user", user)
|> Map.put("user", user)
|> Map.put(:visibility, "direct")
|> Map.put(:order, :desc)
activities =
ActivityPub.fetch_activities_query([user.ap_id], params)