mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-27 13:45:24 +01:00
Fix rendering of reports
This commit is contained in:
parent
87fc5a40f4
commit
42e78a08b2
@ -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: []
|
||||
|
Loading…
Reference in New Issue
Block a user