Format
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
12964b7290
commit
1e9563b348
@ -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
|
||||
|
@ -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 ->
|
||||
|
Loading…
Reference in New Issue
Block a user