Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-11-07 16:09:42 +01:00
parent 0585b9e6d5
commit a9c06a9f35
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ defmodule MobilizonWeb.Resolvers.Actor do
case ActivityPub.find_or_make_actor_from_nickname(name) do
{:ok, actor} ->
{:ok, actor}
_ ->
{:error, "Actor with name #{name} not found"}
end

View File

@ -31,6 +31,7 @@ defmodule MobilizonWeb.Resolvers.Event do
"""
def search_events_and_actors(_parent, %{search: search, page: page, limit: limit}, _resolution) do
search = String.strip(search)
found =
case String.contains?(search, "@") do
true ->