From: Maxim Filippov Date: Thu, 5 Sep 2019 13:54:34 +0000 (+0300) Subject: Reverse reports list X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=736165c082d34ef4d52367ea8315c228a1df3944;p=akkoma Reverse reports list --- diff --git a/lib/pleroma/web/admin_api/views/report_view.ex b/lib/pleroma/web/admin_api/views/report_view.ex index 0b8745b2e..51b95ad5e 100644 --- a/lib/pleroma/web/admin_api/views/report_view.ex +++ b/lib/pleroma/web/admin_api/views/report_view.ex @@ -12,7 +12,8 @@ defmodule Pleroma.Web.AdminAPI.ReportView do def render("index.json", %{reports: reports}) do %{ - reports: render_many(reports[:items], __MODULE__, "show.json", as: :report), + reports: + render_many(reports[:items], __MODULE__, "show.json", as: :report) |> Enum.reverse(), total: reports[:total] } end