twitterapi: use order constraint to force descending order
authorWilliam Pitcock <nenolod@dereferenced.org>
Tue, 7 May 2019 19:30:51 +0000 (19:30 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 7 May 2019 19:33:25 +0000 (19:33 +0000)
lib/pleroma/web/twitter_api/twitter_api_controller.ex

index ef7b6fe659bd0bcee72cd9f93972cd505b37392f..21e6c555a671883181fb997a285eec1d473ebf09 100644 (file)
@@ -182,6 +182,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller 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)