@@ -70,6 +70,9 @@ defmodule Mobilizon.Service.Notifier.Email do
|
||||
@always_direct_subjects [
|
||||
:participation_event_comment,
|
||||
:event_comment_mention,
|
||||
:conversation_mention,
|
||||
:conversation_created,
|
||||
:conversation_replied,
|
||||
:discussion_mention,
|
||||
:event_new_comment
|
||||
]
|
||||
@@ -175,6 +178,9 @@ defmodule Mobilizon.Service.Notifier.Email do
|
||||
"member_updated" => false,
|
||||
"user_email_password_updated" => true,
|
||||
"event_comment_mention" => true,
|
||||
"conversation_mention" => true,
|
||||
"conversation_created" => true,
|
||||
"conversation_replied" => true,
|
||||
"discussion_mention" => true,
|
||||
"event_new_comment" => true
|
||||
}
|
||||
|
||||
@@ -33,6 +33,10 @@ defmodule Mobilizon.Service.Notifier.Filter do
|
||||
defp map_activity_to_activity_setting(%Activity{subject: :event_comment_mention}),
|
||||
do: "event_comment_mention"
|
||||
|
||||
defp map_activity_to_activity_setting(%Activity{subject: subject})
|
||||
when subject in [:conversation_mention, :conversation_created, :conversation_replied],
|
||||
do: to_string(subject)
|
||||
|
||||
defp map_activity_to_activity_setting(%Activity{subject: :discussion_mention}),
|
||||
do: "discussion_mention"
|
||||
|
||||
|
||||
@@ -64,6 +64,7 @@ defmodule Mobilizon.Service.Notifier.Push do
|
||||
"member_updated" => false,
|
||||
"user_email_password_updated" => false,
|
||||
"event_comment_mention" => true,
|
||||
"conversation_mention" => true,
|
||||
"discussion_mention" => false,
|
||||
"event_new_comment" => false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user