Add fallback handler for can_send_activity?
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
af3110955d
commit
16b1e0080c
@ -94,6 +94,15 @@ defmodule Mobilizon.Service.Notifier.Email do
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp can_send_activity?(activity, user, options) do
|
||||||
|
Logger.warn("Can't check if user #{inspect(user)} can be sent an activity",
|
||||||
|
activity: inspect(activity),
|
||||||
|
options: inspect(options)
|
||||||
|
)
|
||||||
|
|
||||||
|
false
|
||||||
|
end
|
||||||
|
|
||||||
@spec match_group_notifications_setting(
|
@spec match_group_notifications_setting(
|
||||||
non_neg_integer(),
|
non_neg_integer(),
|
||||||
String.t(),
|
String.t(),
|
||||||
|
Loading…
Reference in New Issue
Block a user