Browse Source

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

flash-support-csp
Mark Felder 3 years ago
parent
commit
778010ef8e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/pleroma/web/activity_pub/mrf/followbot_policy.ex

+ 2
- 1
lib/pleroma/web/activity_pub/mrf/followbot_policy.ex View 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 <-


Loading…
Cancel
Save