Fix rejecting instance follow

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-04-20 18:35:38 +02:00
parent f6ac72f08d
commit 7c8de2b87f
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -69,10 +69,6 @@ defmodule Mobilizon.GraphQL.API.Follows do
) )
case Actors.check_follow(follower, followed) do case Actors.check_follow(follower, followed) do
%Follower{approved: false} = follow ->
Actors.delete_follower(follow)
{:error, "Follow already rejected"}
%Follower{} = follow -> %Follower{} = follow ->
Actions.Reject.reject( Actions.Reject.reject(
:follow, :follow,