mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-14 03:24:04 +00:00
Merge branch 'feat/deep-link-account-approval' into 'develop'
Deep link to the user account in AdminFE in account confirmation emails See merge request pleroma/pleroma!3065
This commit is contained in:
commit
bc3cf0fee0
|
@ -88,7 +88,7 @@ defmodule Pleroma.Emails.AdminEmail do
|
||||||
html_body = """
|
html_body = """
|
||||||
<p>New account for review: <a href="#{user_url(account)}">@#{account.nickname}</a></p>
|
<p>New account for review: <a href="#{user_url(account)}">@#{account.nickname}</a></p>
|
||||||
<blockquote>#{HTML.strip_tags(account.registration_reason)}</blockquote>
|
<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()
|
new()
|
||||||
|
|
|
@ -63,7 +63,7 @@ defmodule Pleroma.Emails.AdminEmailTest do
|
||||||
assert res.html_body == """
|
assert res.html_body == """
|
||||||
<p>New account for review: <a href="#{account_url}">@#{account.nickname}</a></p>
|
<p>New account for review: <a href="#{account_url}">@#{account.nickname}</a></p>
|
||||||
<blockquote>Plz let me in</blockquote>
|
<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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue