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
|
case ActivityPub.find_or_make_actor_from_nickname(name) do
|
||||||
{:ok, actor} ->
|
{:ok, actor} ->
|
||||||
{:ok, actor}
|
{:ok, actor}
|
||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
{:error, "Actor with name #{name} not found"}
|
{:error, "Actor with name #{name} not found"}
|
||||||
end
|
end
|
||||||
|
@ -31,6 +31,7 @@ defmodule MobilizonWeb.Resolvers.Event do
|
|||||||
"""
|
"""
|
||||||
def search_events_and_actors(_parent, %{search: search, page: page, limit: limit}, _resolution) do
|
def search_events_and_actors(_parent, %{search: search, page: page, limit: limit}, _resolution) do
|
||||||
search = String.strip(search)
|
search = String.strip(search)
|
||||||
|
|
||||||
found =
|
found =
|
||||||
case String.contains?(search, "@") do
|
case String.contains?(search, "@") do
|
||||||
true ->
|
true ->
|
||||||
|
Loading…
Reference in New Issue
Block a user