logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 0903c416456d137fa40bef231c31f038c8c20e9f
parent 4fd96b24aef831095ac8b3494fe4c59d8c9de333
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  5 May 2023 10:54:16 +0200

User: Stop relying on ap_enabled

Diffstat:

Mlib/pleroma/user.ex6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex @@ -1061,11 +1061,7 @@ defmodule Pleroma.User do end def maybe_direct_follow(%User{} = follower, %User{} = followed) do - if not ap_enabled?(followed) do - follow(follower, followed) - else - {:ok, follower, followed} - end + {:ok, follower, followed} end @doc "A mass follow for local users. Respects blocks in both directions but does not create activities."