Make sure a person profile page returns 404
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -38,7 +38,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Group do
|
||||
find_group(parent, args, nil)
|
||||
|
||||
_ ->
|
||||
{:error, dgettext("errors", "Group with name %{name} not found", name: name)}
|
||||
{:error, :group_not_found}
|
||||
end
|
||||
end
|
||||
|
||||
@@ -52,7 +52,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Group do
|
||||
{:ok, actor}
|
||||
else
|
||||
_ ->
|
||||
{:error, dgettext("errors", "Group with name %{name} not found", name: name)}
|
||||
{:error, :group_not_found}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user