|
|
@ -62,13 +62,10 @@ defmodule Pleroma.FollowingRelationship do
|
|
|
|
follow(follower, following, state)
|
|
|
|
follow(follower, following, state)
|
|
|
|
|
|
|
|
|
|
|
|
following_relationship ->
|
|
|
|
following_relationship ->
|
|
|
|
{:ok, relationship} =
|
|
|
|
following_relationship
|
|
|
|
following_relationship
|
|
|
|
|> cast(%{state: state}, [:state])
|
|
|
|
|> cast(%{state: state}, [:state])
|
|
|
|
|> validate_required([:state])
|
|
|
|
|> validate_required([:state])
|
|
|
|
|> Repo.update()
|
|
|
|
|> Repo.update()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{:ok, relationship}
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|