projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2328eff
)
User.Query: Remove superfluous `distinct`
author
lain
<lain@soykaf.club>
Tue, 19 May 2020 12:36:34 +0000
(14:36 +0200)
committer
lain
<lain@soykaf.club>
Tue, 19 May 2020 12:36:34 +0000
(14:36 +0200)
lib/pleroma/user/query.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user/query.ex
b/lib/pleroma/user/query.ex
index 9ef073dff6ceb5b3368aba3f057a1ddf1be7920f..293bbc0827b4fad317ad1facf2095ed6d10583be 100644
(file)
--- a/
lib/pleroma/user/query.ex
+++ b/
lib/pleroma/user/query.ex
@@
-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