Reverse reports list

This commit is contained in:
Maxim Filippov 2019-09-05 16:54:34 +03:00
parent af746fa4a8
commit 736165c082

View file

@ -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