Improve sending pending participation notifications

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-11-15 15:56:28 +01:00
parent 200adf272c
commit be1664ec85
63 changed files with 1544 additions and 1254 deletions

View File

@@ -231,6 +231,7 @@ defmodule Mobilizon.Federation.ActivityPub.Types.Events do
Mobilizon.Events.get_default_participant_role(event) == :not_approved &&
role == :not_approved ->
Logger.debug("Scheduling a notification to notify of a new pending participation")
Scheduler.pending_participation_notification(event)
{:ok, activity_data, participant}