Fix searching for persons

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-05-02 19:27:34 +02:00
parent 3afc7c7feb
commit 5afdd80c71
3 changed files with 9 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Search do
Search persons
"""
def search_persons(_parent, %{page: page, limit: limit} = args, _resolution) do
Search.search_actors(args, page, limit, :Person)
Search.search_actors(Map.put(args, :minimum_visibility, :private), page, limit, :Person)
end
@doc """