mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Rewrite block fetch query
This commit is contained in:
parent
72b93d13f8
commit
1197ec10a8
1 changed files with 2 additions and 1 deletions
|
@ -366,8 +366,9 @@ defmodule Pleroma.Web.ActivityPub.Utils do
|
||||||
fragment(
|
fragment(
|
||||||
"? @> ?",
|
"? @> ?",
|
||||||
activity.data,
|
activity.data,
|
||||||
^%{type: "Block", actor: blocker_id, object: blocked_id}
|
^%{type: "Block", object: blocked_id}
|
||||||
),
|
),
|
||||||
|
where: activity.actor == ^blocker_id,
|
||||||
order_by: [desc: :id],
|
order_by: [desc: :id],
|
||||||
limit: 1
|
limit: 1
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue