Fix reject of already following instances

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-11-29 10:28:42 +01:00
parent f437eb842c
commit 07d679c4ab
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 2 additions and 2 deletions

View File

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