forked from potsda.mn/mobilizon
Fix an issue when showing public page of suspended group
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
5ef50766b1
commit
35b83950d4
|
@ -41,6 +41,9 @@ defmodule Mobilizon.GraphQL.Resolvers.Group do
|
|||
find_group(parent, args, nil)
|
||||
end
|
||||
|
||||
{:ok, %Actor{}} ->
|
||||
{:error, :group_not_found}
|
||||
|
||||
{:error, _err} ->
|
||||
{:error, :group_not_found}
|
||||
end
|
||||
|
@ -52,6 +55,9 @@ defmodule Mobilizon.GraphQL.Resolvers.Group do
|
|||
%Actor{} = actor = restrict_fields_for_non_member_request(actor)
|
||||
{:ok, actor}
|
||||
|
||||
{:ok, %Actor{}} ->
|
||||
{:error, :group_not_found}
|
||||
|
||||
{:error, _err} ->
|
||||
{:error, :group_not_found}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue