mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-14 05:04:49 +00:00
Reverse reports list
This commit is contained in:
parent
af746fa4a8
commit
736165c082
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue