Stop depending on the embedded object in restrict_favorited_by
This commit is contained in:
parent
a7b947534c
commit
b85840b536
1 changed files with 2 additions and 2 deletions
|
@ -733,8 +733,8 @@ defp restrict_state(query, _), do: query
|
|||
|
||||
defp restrict_favorited_by(query, %{"favorited_by" => ap_id}) do
|
||||
from(
|
||||
activity in query,
|
||||
where: fragment(~s(? <@ (? #> '{"object","likes"}'\)), ^ap_id, activity.data)
|
||||
[_activity, object] in query,
|
||||
where: fragment("(?)->'likes' \\? (?)", object.data, ^ap_id)
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue