Do not reverse order of reports. We want newest ones sorted to the top.
authorMark Felder <feld@feld.me>
Wed, 30 Dec 2020 20:22:48 +0000 (14:22 -0600)
committerMark Felder <feld@feld.me>
Wed, 30 Dec 2020 20:22:48 +0000 (14:22 -0600)
lib/pleroma/web/admin_api/views/report_view.ex

index 5355563704d11a62816b7ec62442e088fa94b2a0..da949e3062cdf41147c2f5e708d2cf9634856cf7 100644 (file)
@@ -19,8 +19,7 @@ defmodule Pleroma.Web.AdminAPI.ReportView do
       reports:
         reports[:items]
         |> Enum.map(&Report.extract_report_info/1)
-        |> Enum.map(&render(__MODULE__, "show.json", &1))
-        |> Enum.reverse(),
+        |> Enum.map(&render(__MODULE__, "show.json", &1)),
       total: reports[:total]
     }
   end