User.Query: Remove superfluous `distinct`

This commit is contained in:
lain 2020-05-19 14:36:34 +02:00
parent 2328eff09c
commit be322541c8
1 changed files with 1 additions and 2 deletions

View File

@ -177,8 +177,7 @@ defp compose_query({:recipients_from_activity, to}, query) do
) )
from(u in query, from(u in query,
where: u.ap_id in ^to or u.id in subquery(following_query), where: u.ap_id in ^to or u.id in subquery(following_query)
distinct: true
) )
end end