Update NoteDraftEntityService.ts

This commit is contained in:
syuilo 2025-09-24 19:38:11 +09:00
parent 52d2688d22
commit 4d3775a7c5
1 changed files with 3 additions and 3 deletions

View File

@ -114,13 +114,13 @@ export class NoteDraftEntityService implements OnModuleInit {
visibility: noteDraft.visibility, visibility: noteDraft.visibility,
localOnly: noteDraft.localOnly, localOnly: noteDraft.localOnly,
reactionAcceptance: noteDraft.reactionAcceptance, reactionAcceptance: noteDraft.reactionAcceptance,
visibleUserIds: noteDraft.visibility === 'specified' ? noteDraft.visibleUserIds : undefined, visibleUserIds: noteDraft.visibleUserIds,
hashtag: noteDraft.hashtag ?? undefined, hashtag: noteDraft.hashtag,
fileIds: noteDraft.fileIds, fileIds: noteDraft.fileIds,
files: packedFiles != null ? this.packAttachedFiles(noteDraft.fileIds, packedFiles) : this.driveFileEntityService.packManyByIds(noteDraft.fileIds), files: packedFiles != null ? this.packAttachedFiles(noteDraft.fileIds, packedFiles) : this.driveFileEntityService.packManyByIds(noteDraft.fileIds),
replyId: noteDraft.replyId, replyId: noteDraft.replyId,
renoteId: noteDraft.renoteId, renoteId: noteDraft.renoteId,
channelId: noteDraft.channelId ?? undefined, channelId: noteDraft.channelId,
channel: channel ? { channel: channel ? {
id: channel.id, id: channel.id,
name: channel.name, name: channel.name,