From 16b1e0080c69ccd0edeff926712560f3b9083738 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 7 Nov 2022 19:11:15 +0100 Subject: [PATCH] Add fallback handler for can_send_activity? Signed-off-by: Thomas Citharel --- lib/service/notifier/email.ex | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/service/notifier/email.ex b/lib/service/notifier/email.ex index 64b48b24f..1d5265d17 100644 --- a/lib/service/notifier/email.ex +++ b/lib/service/notifier/email.ex @@ -94,6 +94,15 @@ defmodule Mobilizon.Service.Notifier.Email do ) 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( non_neg_integer(), String.t(),