From 73514688423b92b9f62b52fd54f2e523abeb3e34 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 22 Dec 2023 15:57:29 +0100 Subject: [PATCH] fix(activitypub): handle actors following with manually_approves_followers not set Signed-off-by: Thomas Citharel --- lib/federation/activity_pub/types/actors.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/federation/activity_pub/types/actors.ex b/lib/federation/activity_pub/types/actors.ex index f62ca43f6..c3f00f95d 100644 --- a/lib/federation/activity_pub/types/actors.ex +++ b/lib/federation/activity_pub/types/actors.ex @@ -301,7 +301,7 @@ defmodule Mobilizon.Federation.ActivityPub.Types.Actors do ) do %Actor{id: relay_id} = Relay.get_actor() - unless follower.target_actor.manually_approves_followers or + unless follower.target_actor.manually_approves_followers == true or follower.target_actor.id == relay_id do require Logger Logger.debug("Target doesn't manually approves followers, we can accept right away")