From: Mark Felder Date: Wed, 30 Dec 2020 20:22:48 +0000 (-0600) Subject: Do not reverse order of reports. We want newest ones sorted to the top. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=744b34709db9c11767a9bc57fe0bb21c96e826c7;p=akkoma Do not reverse order of reports. We want newest ones sorted to the top. --- diff --git a/lib/pleroma/web/admin_api/views/report_view.ex b/lib/pleroma/web/admin_api/views/report_view.ex index 535556370..da949e306 100644 --- a/lib/pleroma/web/admin_api/views/report_view.ex +++ b/lib/pleroma/web/admin_api/views/report_view.ex @@ -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