From bda18a2150d0a88cecf2193a68820efcf8f591a2 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 17 Jan 2022 17:50:00 +0100 Subject: [PATCH] Disable follow of non-instances for now Signed-off-by: Thomas Citharel --- lib/web/email/follow.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/email/follow.ex b/lib/web/email/follow.ex index b6c1a523f..948b99326 100644 --- a/lib/web/email/follow.ex +++ b/lib/web/email/follow.ex @@ -20,7 +20,7 @@ defmodule Mobilizon.Web.Email.Follow do def send_notification_to_admins( %Follower{ # approved: false, - actor: %Actor{} = follower, + actor: %Actor{type: :Application} = follower, target_actor: %Actor{id: target_actor_id} } = _follow ) do