From a9c06a9f35471ed6401e2db1432ff9f3a1d3ab1f Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 7 Nov 2018 16:09:42 +0100 Subject: [PATCH] Format Signed-off-by: Thomas Citharel --- lib/mobilizon_web/resolvers/actor.ex | 1 + lib/mobilizon_web/resolvers/event.ex | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/mobilizon_web/resolvers/actor.ex b/lib/mobilizon_web/resolvers/actor.ex index 6ddf7e7d..7a89cbfa 100644 --- a/lib/mobilizon_web/resolvers/actor.ex +++ b/lib/mobilizon_web/resolvers/actor.ex @@ -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 diff --git a/lib/mobilizon_web/resolvers/event.ex b/lib/mobilizon_web/resolvers/event.ex index 323fcf67..69248bdb 100644 --- a/lib/mobilizon_web/resolvers/event.ex +++ b/lib/mobilizon_web/resolvers/event.ex @@ -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 ->