This commit is contained in:
Mark Felder 2021-02-19 14:55:05 -06:00
parent a176914c73
commit f0dcc1ca69

View File

@ -47,7 +47,10 @@ defmodule Pleroma.Web.ActivityPub.MRF.FollowBotPolicy do
false <- User.locked?(user), false <- User.locked?(user),
false <- (user.bio || "") |> String.downcase() |> String.contains?("nobot"), false <- (user.bio || "") |> String.downcase() |> String.contains?("nobot"),
false <- outstanding_follow_request_since?(follower, user, since_thirty_days_ago) do false <- outstanding_follow_request_since?(follower, user, since_thirty_days_ago) do
Logger.info("#{__MODULE__}: Follow request from #{follower.nickname} to #{user.nickname}") Logger.info(
"#{__MODULE__}: Follow request from #{follower.nickname} to #{user.nickname}"
)
CommonAPI.follow(follower, user) CommonAPI.follow(follower, user)
end end
end) end)