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
@@ -134,7 +134,7 @@ export class ChannelOperationsService {
|
||||
}
|
||||
}
|
||||
const requestedNsfwOverride =
|
||||
params.data.nsfw_override !== undefined ? params.data.nsfw_override : (params.data.nsfw ?? null);
|
||||
params.data.nsfw_override !== undefined ? params.data.nsfw_override : params.data.nsfw === true ? true : null;
|
||||
const requestedContentWarningLevel =
|
||||
params.data.content_warning_level === ContentWarningLevel.CONTENT_WARNING
|
||||
? ContentWarningLevel.CONTENT_WARNING
|
||||
|
||||
@@ -828,7 +828,7 @@ export class GuildOperationsService {
|
||||
position,
|
||||
owner_id: null,
|
||||
recipient_ids: null,
|
||||
nsfw: false,
|
||||
nsfw: null,
|
||||
content_warning_level: null,
|
||||
content_warning_text: null,
|
||||
rate_limit_per_user: 0,
|
||||
@@ -1048,7 +1048,7 @@ export class GuildOperationsService {
|
||||
position: channel.position,
|
||||
owner_id: null,
|
||||
recipient_ids: null,
|
||||
nsfw: channel.nsfw ?? false,
|
||||
nsfw: channel.nsfw === true ? true : null,
|
||||
content_warning_level: null,
|
||||
content_warning_text: null,
|
||||
rate_limit_per_user: channel.rate_limit_per_user ?? 0,
|
||||
@@ -1100,7 +1100,7 @@ export class GuildOperationsService {
|
||||
position: 0,
|
||||
owner_id: null,
|
||||
recipient_ids: null,
|
||||
nsfw: false,
|
||||
nsfw: null,
|
||||
content_warning_level: null,
|
||||
content_warning_text: null,
|
||||
rate_limit_per_user: 0,
|
||||
|
||||
Reference in new issue
Block a user