1
0
Fork 0
forked from mirrors/akkoma

Follower requests: Utilize object index.

Closes #677
This commit is contained in:
lain 2019-02-27 15:01:54 +01:00
parent 8d8cb08f94
commit b24cc44e8d

View file

@ -613,9 +613,10 @@ def get_follow_requests_query(%User{} = user) do
),
where:
fragment(
"? @> ?",
"coalesce((?)->'object'->>'id', (?)->>'object') = ?",
a.data,
^%{"object" => user.ap_id}
a.data,
^user.ap_id
)
)
end