projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d8cb08
)
Follower requests: Utilize object index.
author
lain
<lain@soykaf.club>
Wed, 27 Feb 2019 14:01:54 +0000
(15:01 +0100)
committer
lain
<lain@soykaf.club>
Wed, 27 Feb 2019 14:01:54 +0000
(15:01 +0100)
Closes #677
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index 01d532ab3158b3060e26a3fb0d3d69f6c37c5bcc..c5085fa8280c67cb7a62a107127ac1a9c500fe24 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-613,9
+613,10
@@
defmodule Pleroma.User do
),
where:
fragment(
- "
? @>
?",
+ "
coalesce((?)->'object'->>'id', (?)->>'object') =
?",
a.data,
- ^%{"object" => user.ap_id}
+ a.data,
+ ^user.ap_id
)
)
end