Commit 519a294d authored by kaniini's avatar kaniini
Browse files

Merge branch 'reports/fix-remote-reporting-emails' into 'develop'

reports: fix up email generation for remote reports

See merge request !962
parents 1c3d3d0c 27e03a21
Pipeline #9248 passed with stages
in 4 minutes and 23 seconds
...@@ -29,9 +29,13 @@ def report(to, reporter, account, statuses, comment) do ...@@ -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
%{id: id} ->
status_url = Helpers.o_status_url(Pleroma.Web.Endpoint, :notice, id) status_url = Helpers.o_status_url(Pleroma.Web.Endpoint, :notice, id)
"<li><a href=\"#{status_url}\">#{status_url}</li>" "<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")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment