Commit 1197ec10 authored by normandy's avatar normandy
Browse files

Rewrite block fetch query

parent 72b93d13
......@@ -366,8 +366,9 @@ def fetch_latest_block(%User{ap_id: blocker_id}, %User{ap_id: blocked_id}) do
"? @> ?",,
^%{type: "Block", actor: blocker_id, object: blocked_id}
^%{type: "Block", object: blocked_id}
where: == ^blocker_id,
order_by: [desc: :id],
limit: 1
Supports Markdown
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