Improve the way the instance name is injected into emails

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-09-30 09:34:39 +02:00
parent 6edeeef9a9
commit 4a7c6a861e
18 changed files with 21 additions and 29 deletions

View File

@@ -2,6 +2,6 @@
==
<%= gettext "You created an account on %{host} with this email address. You are one click away from activating it. If this wasn't you, please ignore this email.", host: @instance[:name] %>
<%= gettext "You created an account on %{host} with this email address. You are one click away from activating it. If this wasn't you, please ignore this email.", host: @instance_name %>
<%= Mobilizon.Web.Endpoint.url() <> "/validate/#{@token}" %>