reports: fix up email generation for remote reports

This commit is contained in:
William Pitcock 2019-03-22 01:17:14 +00:00
parent 1c3d3d0c2b
commit 27e03a2177

View File

@ -29,9 +29,13 @@ def report(to, reporter, account, statuses, comment) do
if length(statuses) > 0 do if length(statuses) > 0 do
statuses_list_html = statuses_list_html =
statuses statuses
|> Enum.map(fn %{id: id} -> |> Enum.map(fn
status_url = Helpers.o_status_url(Pleroma.Web.Endpoint, :notice, id) %{id: id} ->
"<li><a href=\"#{status_url}\">#{status_url}</li>" status_url = Helpers.o_status_url(Pleroma.Web.Endpoint, :notice, id)
"<li><a href=\"#{status_url}\">#{status_url}</li>"
id when is_binary(id) ->
"<li><a href=\"#{id}\">#{id}</li>"
end) end)
|> Enum.join("\n") |> Enum.join("\n")