feat(app,api): let group DM owners allow mature content (#3350)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-09 14:12:13 +02:00
1 parent 4749eb7f86
commit 9a20821332
126 files changed
+2127 -1277

No files matched your search

@@ -158,6 +158,10 @@ export class MessagePersistenceService {
return resolveNsfwScopeChannel(channel, (channelId) => this.channelRepository.channelData.findUnique(channelId));
}
resolveDmNsfwContext(channel: Channel, senderId: UserID): Promise<DmNsfwContext | undefined> {
return this.contentService.resolveDmNsfwContext(channel, senderId);
}
getEmbedAttachmentResolver(): MessageEmbedAttachmentResolver {
return this.embedAttachmentResolver;
}
@@ -402,6 +406,7 @@ export class MessagePersistenceService {
isBot?: boolean;
isBugHunterBot?: boolean;
locale?: string | null;
dmNsfwContext?: DmNsfwContext;
}): Promise<UpdateMessageResult> {
const {message, messageId, data, channel, guild, member} = params;
if (message.messageSnapshots && message.messageSnapshots.length > 0) {
@@ -412,6 +417,7 @@ export class MessagePersistenceService {
guild,
member,
isBot: params.isBot,
dmNsfwContext: params.dmNsfwContext,
});
const updatedRowData = {...message.toRow()};
let hasChanges = false;