mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 13:35:42 +09:00
feat(admin,api): restrict community creation on self-hosted (#3055)
This commit is contained in:
1 parent
ab4069ed0e
commit
ca719e7b5e
95 files changed
+508
-13
No files matched your search
@@ -160,6 +160,11 @@ export const InstanceCommunitySchema = z
|
||||
direct_messages_disabled: z
|
||||
.boolean()
|
||||
.describe('Whether direct messages and friend requests are disabled instance-wide'),
|
||||
guild_create_access: z
|
||||
.boolean()
|
||||
.describe(
|
||||
'Whether every account can create communities. When false, only admins and accounts granted the feature_guild_create limit can',
|
||||
),
|
||||
})
|
||||
.describe('Community topology and direct-message policy for this instance');
|
||||
export type InstanceCommunity = z.infer<typeof InstanceCommunitySchema>;
|
||||
|
||||
Reference in new issue
Block a user