Grouped reports with status data baked in
This commit is contained in:
parent
43ea16870f
commit
f171095960
3 changed files with 123 additions and 60 deletions
|
|
@ -47,8 +47,8 @@ defmodule Pleroma.Web.AdminAPI.ReportView do
|
|||
Enum.map(groups, fn group ->
|
||||
%{
|
||||
date: group[:date],
|
||||
account: merge_account_views(group[:account]),
|
||||
status: StatusView.render("show.json", %{activity: group[:status]}),
|
||||
account: group[:account],
|
||||
status: group[:status],
|
||||
actors: Enum.map(group[:actors], &merge_account_views/1),
|
||||
reports:
|
||||
group[:reports]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue