Restrict follows to approved actors/instances

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-12-19 13:41:25 +01:00
parent bb3cd214ea
commit fe4cf86838
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -934,7 +934,7 @@ defmodule Mobilizon.Actors do
a in Actor, a in Actor,
join: f in Follower, join: f in Follower,
on: a.id == f.actor_id, 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 end