User: Remove superfluous maybe_follow.

This commit is contained in:
lain 2019-06-05 14:24:31 +02:00
commit 076c9ae40e
4 changed files with 10 additions and 23 deletions

View file

@ -324,14 +324,6 @@ defmodule Pleroma.User do
end
end
def maybe_follow(%User{} = follower, %User{info: _info} = followed) do
if not following?(follower, followed) do
follow(follower, followed)
else
{:ok, follower}
end
end
@doc "A mass follow for local users. Respects blocks in both directions but does not create activities."
@spec follow_all(User.t(), list(User.t())) :: {atom(), User.t()}
def follow_all(follower, followeds) do