Deep link to the user account in AdminFE in account confirmation emails
authorMark Felder <feld@FreeBSD.org>
Fri, 9 Oct 2020 22:08:05 +0000 (17:08 -0500)
committerMark Felder <feld@FreeBSD.org>
Fri, 9 Oct 2020 22:08:05 +0000 (17:08 -0500)
lib/pleroma/emails/admin_email.ex
test/emails/admin_email_test.exs

index c27ad10657519915c2b6fd8757576c1475d93709..8979db2f8269518fa63ceaecfbe61c7dbda0b088 100644 (file)
@@ -88,7 +88,7 @@ defmodule Pleroma.Emails.AdminEmail do
     html_body = """
     <p>New account for review: <a href="#{user_url(account)}">@#{account.nickname}</a></p>
     <blockquote>#{HTML.strip_tags(account.registration_reason)}</blockquote>
-    <a href="#{Pleroma.Web.base_url()}/pleroma/admin">Visit AdminFE</a>
+    <a href="#{Pleroma.Web.base_url()}/pleroma/admin/#/users/#{account.id}/">Visit AdminFE</a>
     """
 
     new()
index e24231e270553340075277cca73edb8cf4e5c2bd..155057f3e1b2a399801202e688829347e48a140e 100644 (file)
@@ -63,7 +63,7 @@ defmodule Pleroma.Emails.AdminEmailTest do
     assert res.html_body == """
            <p>New account for review: <a href="#{account_url}">@#{account.nickname}</a></p>
            <blockquote>Plz let me in</blockquote>
-           <a href="http://localhost:4001/pleroma/admin">Visit AdminFE</a>
+           <a href="http://localhost:4001/pleroma/admin/#/users/#{account.id}/">Visit AdminFE</a>
            """
   end
 end