User.Query: Remove superfluous `distinct`
authorlain <lain@soykaf.club>
Tue, 19 May 2020 12:36:34 +0000 (14:36 +0200)
committerlain <lain@soykaf.club>
Tue, 19 May 2020 12:36:34 +0000 (14:36 +0200)
lib/pleroma/user/query.ex

index 9ef073dff6ceb5b3368aba3f057a1ddf1be7920f..293bbc0827b4fad317ad1facf2095ed6d10583be 100644 (file)
@@ -177,8 +177,7 @@ defmodule Pleroma.User.Query do
       )
 
     from(u in query,
-      where: u.ap_id in ^to or u.id in subquery(following_query),
-      distinct: true
+      where: u.ap_id in ^to or u.id in subquery(following_query)
     )
   end