From ca6ba4d0849bdce9e6af537dcf1a11c44c3b7919 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 19 Dec 2019 13:41:25 +0100 Subject: [PATCH] Restrict follows to approved actors/instances Signed-off-by: Thomas Citharel --- lib/mobilizon/actors/actors.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mobilizon/actors/actors.ex b/lib/mobilizon/actors/actors.ex index a92710859..0a70d6cbe 100644 --- a/lib/mobilizon/actors/actors.ex +++ b/lib/mobilizon/actors/actors.ex @@ -934,7 +934,7 @@ defmodule Mobilizon.Actors do a in Actor, join: f in Follower, on: a.id == f.actor_id, - where: f.target_actor_id == ^actor_id + where: f.target_actor_id == ^actor_id and f.approved == true ) end