diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-07-31 14:40:51 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-31 14:40:51 +0900 |
| commit | f2a23fb55ef2100bd26e3f2bcd7f939052c2ea09 (patch) | |
| tree | dff9f61bbb387e2e7d871cdf1d83d1580ebef10a /packages/backend/src/core/NoteCreateService.ts | |
| parent | fix(test): Fix name of a test in e2e/timelines.ts (#16334) (diff) | |
| download | misskey-f2a23fb55ef2100bd26e3f2bcd7f939052c2ea09.tar.gz misskey-f2a23fb55ef2100bd26e3f2bcd7f939052c2ea09.tar.bz2 misskey-f2a23fb55ef2100bd26e3f2bcd7f939052c2ea09.zip | |
ノートの脱CASCADE削除 (#16332)
* wip
* Update CHANGELOG.md
* Update QueryService.ts
* Update QueryService.ts
* wip
* Update MkNoteDetailed.vue
* Update NoteEntityService.ts
* wip
* Update antennas.ts
* Update create.ts
* Update NoteEntityService.ts
* wip
* Update CHANGELOG.md
* Update NoteEntityService.ts
* Update NoteCreateService.ts
* Update note.test.ts
* Update note.test.ts
* Update ClientServerService.ts
* Update ClientServerService.ts
* add error handling
* Update NoteDeleteService.ts
* Update CHANGELOG.md
* Update entities.ts
* Update entities.ts
* Update misskey-js.api.md
Diffstat (limited to 'packages/backend/src/core/NoteCreateService.ts')
| -rw-r--r-- | packages/backend/src/core/NoteCreateService.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts index 469426f87e..1eefcfa054 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -421,7 +421,7 @@ export class NoteCreateService implements OnApplicationShutdown { emojis, userId: user.id, localOnly: data.localOnly!, - reactionAcceptance: data.reactionAcceptance, + reactionAcceptance: data.reactionAcceptance ?? null, visibility: data.visibility as any, visibleUserIds: data.visibility === 'specified' ? data.visibleUsers @@ -483,7 +483,11 @@ export class NoteCreateService implements OnApplicationShutdown { await this.notesRepository.insert(insert); } - return insert; + return { + ...insert, + reply: data.reply ?? null, + renote: data.renote ?? null, + }; } catch (e) { // duplicate key error if (isDuplicateKeyValueError(e)) { |