mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix(api): let new channels inherit the adult-only setting (#3053)
This commit is contained in:
1 parent
e8cb167dbf
commit
dcdf7e1d93
4 files changed
+34
-5
No files matched your search
@@ -384,7 +384,7 @@ describe('Message Search Permissions', () => {
|
||||
const guild = await createGuild(harness, owner.token, 'Age Restricted Override Guild');
|
||||
const channel = await createBuilder<{id: string; nsfw_override?: boolean | null}>(harness, owner.token)
|
||||
.post(`/guilds/${guild.id}/channels`)
|
||||
.body({name: 'override-channel', type: ChannelTypes.GUILD_TEXT, nsfw: false})
|
||||
.body({name: 'override-channel', type: ChannelTypes.GUILD_TEXT, nsfw_override: false})
|
||||
.execute();
|
||||
expect(channel.nsfw_override).toBe(false);
|
||||
await sendChannelMessage(harness, owner.token, channel.id, 'age restricted override searchable message');
|
||||
|
||||
Reference in new issue
Block a user