forked from AkkomaGang/akkoma
Fix rendering of reports
This commit is contained in:
parent
87fc5a40f4
commit
42e78a08b2
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ def render("show.json", %{report: report, user: user, account: account, statuses
|
||||||
end
|
end
|
||||||
|
|
||||||
def render("index_notes.json", %{notes: notes}) when is_list(notes) do
|
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
|
end
|
||||||
|
|
||||||
def render("index_notes.json", _), do: []
|
def render("index_notes.json", _), do: []
|
||||||
|
|
Loading…
Reference in a new issue