QdrantSearch: Fix actor / author restriction

This commit is contained in:
Lain Soykaf 2024-05-23 18:55:16 +04:00
commit a566ad56e1
2 changed files with 3 additions and 3 deletions

View file

@ -71,9 +71,9 @@ defmodule Pleroma.Search.QdrantSearch do
offset: options[:offset] || 0
}
if options[:actor] do
if author = options[:author] do
Map.put(base, :filter, %{
must: [%{key: "actor", match: %{value: options[:actor].ap_id}}]
must: [%{key: "actor", match: %{value: author.ap_id}}]
})
else
base