projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af746fa
)
Reverse reports list
author
Maxim Filippov
<colixer@gmail.com>
Thu, 5 Sep 2019 13:54:34 +0000
(16:54 +0300)
committer
Maxim Filippov
<colixer@gmail.com>
Thu, 5 Sep 2019 13:54:34 +0000
(16:54 +0300)
lib/pleroma/web/admin_api/views/report_view.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/admin_api/views/report_view.ex
b/lib/pleroma/web/admin_api/views/report_view.ex
index 0b8745b2e7d69277f4d560c8e57ad4fbf28920cd..51b95ad5ef708b4178c895f3c21146d7ed99f621 100644
(file)
--- 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