Merge branch 'feature/add-adminfe-url-to-report-mails' into 'develop'
Add AdminFE reports URL to report emails Closes #1926 See merge request pleroma/pleroma!2742
This commit is contained in:
commit
4301ae3861
|
@ -72,6 +72,8 @@ def report(to, reporter, account, statuses, comment) do
|
||||||
<p>Reported Account: <a href="#{user_url(account)}">#{account.nickname}</a></p>
|
<p>Reported Account: <a href="#{user_url(account)}">#{account.nickname}</a></p>
|
||||||
#{comment_html}
|
#{comment_html}
|
||||||
#{statuses_html}
|
#{statuses_html}
|
||||||
|
<p>
|
||||||
|
<a href="#{Pleroma.Web.base_url()}/pleroma/admin/#/reports/index">View Reports in AdminFE</a>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
new()
|
new()
|
||||||
|
|
|
@ -31,7 +31,7 @@ test "build report email" do
|
||||||
account_url
|
account_url
|
||||||
}\">#{account.nickname}</a></p>\n<p>Comment: Test comment\n<p> Statuses:\n <ul>\n <li><a href=\"#{
|
}\">#{account.nickname}</a></p>\n<p>Comment: Test comment\n<p> Statuses:\n <ul>\n <li><a href=\"#{
|
||||||
status_url
|
status_url
|
||||||
}\">#{status_url}</li>\n </ul>\n</p>\n\n"
|
}\">#{status_url}</li>\n </ul>\n</p>\n\n<p>\n<a href=\"http://localhost:4001/pleroma/admin/#/reports/index\">View Reports in AdminFE</a>\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it works when the reporter is a remote user without email" do
|
test "it works when the reporter is a remote user without email" do
|
||||||
|
|
Loading…
Reference in New Issue