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

@@ -1,4 +1,4 @@
<%= gettext "New report from %{reporter} on %{instance}", reporter: Mobilizon.Actors.Actor.display_name_and_username(@report.reporter), instance: @instance[:name] %>
<%= gettext "New report from %{reporter} on %{instance}", reporter: Mobilizon.Actors.Actor.display_name_and_username(@report.reporter), instance: @instance_name %>
--
<%= if @report.reported do %>
<%= if @report.reported.type == :Group do %>