parent
8d8cb08f94
commit
b24cc44e8d
|
@ -613,9 +613,10 @@ def get_follow_requests_query(%User{} = user) do
|
||||||
),
|
),
|
||||||
where:
|
where:
|
||||||
fragment(
|
fragment(
|
||||||
"? @> ?",
|
"coalesce((?)->'object'->>'id', (?)->>'object') = ?",
|
||||||
a.data,
|
a.data,
|
||||||
^%{"object" => user.ap_id}
|
a.data,
|
||||||
|
^user.ap_id
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue