Do not try to follow local users. Their posts are already available locally on the...
authorMark Felder <feld@feld.me>
Fri, 19 Feb 2021 21:25:26 +0000 (15:25 -0600)
committerMark Felder <feld@feld.me>
Tue, 30 Mar 2021 16:10:44 +0000 (11:10 -0500)
lib/pleroma/web/activity_pub/mrf/followbot_policy.ex

index 838d39c884b52f5b7917e8d25f66b568eee3a6e7..5c883453602ca62dbaf2581746ecf88ef48a419a 100644 (file)
@@ -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 <-