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
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,