projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87fc5a4
)
Fix rendering of reports
author
Mark Felder
<feld@FreeBSD.org>
Wed, 7 Oct 2020 17:30:55 +0000
(12:30 -0500)
committer
Mark Felder
<feld@FreeBSD.org>
Wed, 7 Oct 2020 17:30:55 +0000
(12:30 -0500)
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 773f798fe4a5010aa12acd35955f559514824a5c..5355563704d11a62816b7ec62442e088fa94b2a0 100644
(file)
--- a/
lib/pleroma/web/admin_api/views/report_view.ex
+++ b/
lib/pleroma/web/admin_api/views/report_view.ex
@@
-52,7
+52,7
@@
defmodule Pleroma.Web.AdminAPI.ReportView do
end
def render("index_notes.json", %{notes: notes}) when is_list(notes) do
- Enum.map(notes, &render(__MODULE__, "show_note.json",
&1
))
+ Enum.map(notes, &render(__MODULE__, "show_note.json",
Map.from_struct(&1)
))
end
def render("index_notes.json", _), do: []