Send the membership emails in the correct language
And send them as well if the member is on the same instance 🙈 Close #472 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -24,7 +24,8 @@ defmodule Mobilizon.Web.Email.Group do
|
||||
member,
|
||||
locale
|
||||
) do
|
||||
with %User{email: email} <- Users.get_user!(user_id) do
|
||||
with %User{email: email} = user <- Users.get_user!(user_id) do
|
||||
locale = Map.get(user, :locale, locale)
|
||||
Gettext.put_locale(locale)
|
||||
%Actor{name: invited_by_name} = inviter = Actors.get_actor(member.invited_by_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user