fix(emails): make sure group notification emails are only sent once per email
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
dc3b93ffb5
commit
927e95f387
|
@ -26,6 +26,7 @@ defmodule Mobilizon.Web.Email.Group do
|
||||||
users ++ [Users.get_user_with_activity_settings!(actor.user_id)]
|
users ++ [Users.get_user_with_activity_settings!(actor.user_id)]
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|> Enum.uniq_by(& &1.email)
|
||||||
|> Enum.each(¬ify_follower(event, group, &1))
|
|> Enum.each(¬ify_follower(event, group, &1))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue