Fix reject of already following instances
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
30f220f73f
commit
e9ca950067
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user