Fix reject of already following instances
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
f437eb842c
commit
07d679c4ab
@ -69,8 +69,8 @@ defmodule Mobilizon.GraphQL.API.Follows do
|
|||||||
)
|
)
|
||||||
|
|
||||||
case Actors.is_following(follower, followed) do
|
case Actors.is_following(follower, followed) do
|
||||||
%Follower{approved: true} ->
|
%Follower{approved: false} ->
|
||||||
{:error, "Follow already accepted"}
|
{:error, "Follow already rejected"}
|
||||||
|
|
||||||
%Follower{} = follow ->
|
%Follower{} = follow ->
|
||||||
Actions.Reject.reject(
|
Actions.Reject.reject(
|
||||||
|
Loading…
Reference in New Issue
Block a user