Add AdminFE reports URL to report emails
authorMark Felder <feld@FreeBSD.org>
Thu, 9 Jul 2020 16:55:40 +0000 (11:55 -0500)
committerMark Felder <feld@FreeBSD.org>
Thu, 9 Jul 2020 16:55:40 +0000 (11:55 -0500)
lib/pleroma/emails/admin_email.ex
test/emails/admin_email_test.exs

index c67ba63adc29c553424e1713033809527d847ed6..aa0b2a66ba6724b95c8a304b4908e56d55b61966 100644 (file)
@@ -72,6 +72,8 @@ defmodule Pleroma.Emails.AdminEmail do
     <p>Reported Account: <a href="#{user_url(account)}">#{account.nickname}</a></p>
     #{comment_html}
     #{statuses_html}
+    <p>
+    <a href="#{Pleroma.Web.base_url()}/pleroma/admin/#/reports/index">View Reports in AdminFE</a>
     """
 
     new()
index bc871a0a9cc17a3196896e06c5804eeeeccf87b9..9082ae5a7c2a7eaabdff516b2ab7f74d43e013a2 100644 (file)
@@ -31,7 +31,7 @@ defmodule Pleroma.Emails.AdminEmailTest do
                account_url
              }\">#{account.nickname}</a></p>\n<p>Comment: Test comment\n<p> Statuses:\n  <ul>\n    <li><a href=\"#{
                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
 
   test "it works when the reporter is a remote user without email" do