Log when a follow request is auto-accepted

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-05-12 18:18:40 +02:00
parent 4100b2f962
commit f84cc299ba
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -227,6 +227,9 @@ defmodule Mobilizon.Federation.ActivityPub.Types.Actors do
unless follower.target_actor.manually_approves_followers or unless follower.target_actor.manually_approves_followers or
follower.target_actor.id == relay_id do follower.target_actor.id == relay_id do
require Logger
Logger.debug("Target doesn't manually approves followers, we can accept right away")
{:accept, {:accept,
ActivityPub.accept( ActivityPub.accept(
:follow, :follow,