From 1e9563b3480261fe5f2db9f676db7eea16e7a547 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 6ddf7e7d8..7a89cbfa0 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 323fcf673..69248bdbf 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 ->