Commit b24cc44e authored by lain's avatar lain

Follower requests: Utilize object index.

Closes #677
parent 8d8cb08f
Pipeline #8259 passed with stages
in 4 minutes and 53 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment