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
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user