logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 778010ef8e1f4509bd554e65556336e5e8457ef6
parent 86182ef8e445ee8a89ce2e49f33cab3dac2d2b12
Author: Mark Felder <feld@feld.me>
Date:   Fri, 19 Feb 2021 15:25:26 -0600

Do not try to follow local users. Their posts are already available locally on the instance.

Diffstat:

Mlib/pleroma/web/activity_pub/mrf/followbot_policy.ex3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/pleroma/web/activity_pub/mrf/followbot_policy.ex b/lib/pleroma/web/activity_pub/mrf/followbot_policy.ex @@ -41,7 +41,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.FollowbotPolicy do |> Enum.each(fn user -> since_thirty_days_ago = NaiveDateTime.utc_now() |> NaiveDateTime.add(-(86_400 * 30)) - with false <- User.following?(follower, user), + with false <- user.local, + false <- User.following?(follower, user), false <- User.locked?(user), false <- (user.bio || "") |> String.downcase() |> String.contains?("nobot"), false <-