Add fallback handler for can_send_activity?

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-11-07 19:11:15 +01:00
parent af3110955d
commit 16b1e0080c
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -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(),