Fix rejecting instance follow
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
f6ac72f08d
commit
7c8de2b87f
|
@ -69,10 +69,6 @@ defmodule Mobilizon.GraphQL.API.Follows do
|
|||
)
|
||||
|
||||
case Actors.check_follow(follower, followed) do
|
||||
%Follower{approved: false} = follow ->
|
||||
Actors.delete_follower(follow)
|
||||
{:error, "Follow already rejected"}
|
||||
|
||||
%Follower{} = follow ->
|
||||
Actions.Reject.reject(
|
||||
:follow,
|
||||
|
|
Loading…
Reference in a new issue