User: Remove superfluous maybe_follow.
This commit is contained in:
parent
3115b64cfe
commit
076c9ae40e
4 changed files with 10 additions and 23 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue