projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eba8acf
)
Fix duplicate recipients
author
kPherox
<admin@mail.kr-kp.com>
Wed, 30 Oct 2019 06:40:25 +0000
(15:40 +0900)
committer
kPherox
<admin@mail.kr-kp.com>
Wed, 30 Oct 2019 06:40:25 +0000
(15:40 +0900)
lib/pleroma/user/query.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user/query.ex
b/lib/pleroma/user/query.ex
index 2eda454bc7d6acef7da967602c1572b2a8020471..364bc1c898205f78d2886aaaf5db82dda5880c3e 100644
(file)
--- a/
lib/pleroma/user/query.ex
+++ b/
lib/pleroma/user/query.ex
@@
-175,6
+175,7
@@
defmodule Pleroma.User.Query do
[u, following: f, relationships: r],
u.ap_id in ^to or (f.follower_address in ^to and r.state == "accept")
)
+ |> distinct(true)
end
defp compose_query({:order_by, key}, query) do