feat(notifications): add missing notifications when an user registers to an event

Closes #1344

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-08-24 11:42:03 +02:00
parent f99267c611
commit da532c7059
15 changed files with 149 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
defmodule Mobilizon.Service.Activity.Renderer.Event do
@moduledoc """
Insert a comment activity
Insert an event activity
"""
alias Mobilizon.Activities.Activity
alias Mobilizon.Actors.Actor
@@ -67,6 +67,16 @@ defmodule Mobilizon.Service.Activity.Renderer.Event do
url: event_url(activity)
}
end
:event_new_participation ->
%{
body:
dgettext("activity", "%{profile} joined your event %{event}.", %{
profile: profile(activity),
event: title(activity)
}),
url: event_url(activity)
}
end
end