improve group creation view

This commit is contained in:
setop
2023-09-01 14:06:44 +00:00
committed by Thomas Citharel
parent 4ce79f5136
commit 3f60174877
6 changed files with 156 additions and 13 deletions

View File

@@ -305,6 +305,10 @@ defmodule Mobilizon.GraphQL.Schema.Actors.GroupType do
description: "Whether the group can be join freely, with approval or is invite-only."
)
arg(:manually_approves_followers, :boolean,
description: "Whether this group approves new followers manually"
)
arg(:avatar, :media_input,
description:
"The avatar for the group, either as an object or directly the ID of an existing media"

View File

@@ -146,7 +146,8 @@ defmodule Mobilizon.Actors.Actor do
:domain,
:summary,
:visibility,
:openness
:openness,
:manually_approves_followers
]
@group_creation_attrs @group_creation_required_attrs ++ @group_creation_optional_attrs