From: Mark Felder Date: Wed, 7 Oct 2020 17:30:55 +0000 (-0500) Subject: Fix rendering of reports X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=42e78a08b28f3faee21b803c1e621e96bbf5c731;p=akkoma Fix rendering of reports --- diff --git a/lib/pleroma/web/admin_api/views/report_view.ex b/lib/pleroma/web/admin_api/views/report_view.ex index 773f798fe..535556370 100644 --- 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: []