summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2024-05-23 18:55:16 +0400
committerLain Soykaf <lain@lain.com>2024-05-23 18:55:16 +0400
commita566ad56e1434715d00067b1e49be66b6787f5ba (patch)
treed13e22f8ee821815189406559f6ed9bd6cafcf5f /lib
parent94e4f215896dc7976a54fd146daf3e286602925a (diff)
downloadpleroma-a566ad56e1434715d00067b1e49be66b6787f5ba.tar.gz
pleroma-a566ad56e1434715d00067b1e49be66b6787f5ba.zip
QdrantSearch: Fix actor / author restriction
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/search/qdrant_search.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/search/qdrant_search.ex b/lib/pleroma/search/qdrant_search.ex
index 9cb34ef71..19e8cd4bf 100644
--- a/lib/pleroma/search/qdrant_search.ex
+++ b/lib/pleroma/search/qdrant_search.ex
@@ -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