From f84cc299bae3dfca573ea4a5a6488901577ace76 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 12 May 2021 18:18:40 +0200 Subject: [PATCH] Log when a follow request is auto-accepted Signed-off-by: Thomas Citharel --- lib/federation/activity_pub/types/actors.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/federation/activity_pub/types/actors.ex b/lib/federation/activity_pub/types/actors.ex index e0ac6d59..067b6608 100644 --- a/lib/federation/activity_pub/types/actors.ex +++ b/lib/federation/activity_pub/types/actors.ex @@ -227,6 +227,9 @@ defmodule Mobilizon.Federation.ActivityPub.Types.Actors do unless follower.target_actor.manually_approves_followers or follower.target_actor.id == relay_id do + require Logger + Logger.debug("Target doesn't manually approves followers, we can accept right away") + {:accept, ActivityPub.accept( :follow,