From 6a2deeb4275193d2a334928f4c1d74abc3479410 Mon Sep 17 00:00:00 2001 From: NoriDev Date: Thu, 19 Oct 2023 19:45:08 +0900 Subject: [PATCH] =?UTF-8?q?enhance(backend):=20'=EB=82=B4=EC=9A=A9=20?= =?UTF-8?q?=EC=88=A8=EA=B8=B0=EA=B8=B0'=EB=A1=9C=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=EB=90=9C=20=EB=85=B8=ED=8A=B8=EC=9D=98=20=EC=A3=BC=EC=84=9D?= =?UTF-8?q?=EB=8F=84=20=EB=85=B8=ED=8A=B8=20=ED=8E=B8=EC=A7=91=20=EA=B8=B0?= =?UTF-8?q?=EB=A1=9D=EC=97=90=20=ED=91=9C=EC=8B=9C=EB=90=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG_CHERRYPICK.md | 1 + packages/backend/src/server/api/endpoints/notes/update.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG_CHERRYPICK.md b/CHANGELOG_CHERRYPICK.md index 7386bd8117..a8510617c0 100644 --- a/CHANGELOG_CHERRYPICK.md +++ b/CHANGELOG_CHERRYPICK.md @@ -36,6 +36,7 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2023xx](CHANGE - Fix: '새 노트 알림'을 '노트 수 표시'로 설정했을 때 한국어 이외의 언어에서 내용이 표시되지 않음 ### Server +- Enhance: '내용 숨기기'로 설정된 노트의 주석도 노트 편집 기록에 표시됨 - Revert: Perf: 부팅 시 MeiliSearch 설정을 업데이트하지 마십시오 (MisskeyIO/misskey#158) --- diff --git a/packages/backend/src/server/api/endpoints/notes/update.ts b/packages/backend/src/server/api/endpoints/notes/update.ts index b02d5bebb7..a4fdebe383 100644 --- a/packages/backend/src/server/api/endpoints/notes/update.ts +++ b/packages/backend/src/server/api/endpoints/notes/update.ts @@ -80,7 +80,7 @@ export default class extends Endpoint { // eslint- cw: ps.cw, text: ps.text, updatedAtHistory: [...updatedAtHistory, new Date()], - noteEditHistory: [...note.noteEditHistory, note.text!], + noteEditHistory: [...note.noteEditHistory, (note.cw ? note.cw + '\n' : '') + note.text!], }); this.globalEventService.publishNoteStream(note.id, 'updated', {