Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
27e03a21
Commit
27e03a21
authored
Mar 22, 2019
by
kaniini
Browse files
reports: fix up email generation for remote reports
parent
1c3d3d0c
Pipeline
#9244
passed with stages
in 7 minutes and 58 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
lib/pleroma/emails/admin_email.ex
View file @
27e03a21
...
...
@@ -29,9 +29,13 @@ def report(to, reporter, account, statuses, comment) do
if
length
(
statuses
)
>
0
do
statuses_list_html
=
statuses
|>
Enum
.
map
(
fn
%{
id:
id
}
->
|>
Enum
.
map
(
fn
%{
id:
id
}
->
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
)
|>
Enum
.
join
(
"
\n
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment