diff --git a/CHANGELOG_CHERRYPICK.md b/CHANGELOG_CHERRYPICK.md index c58fff2e4f..fea2acf26f 100644 --- a/CHANGELOG_CHERRYPICK.md +++ b/CHANGELOG_CHERRYPICK.md @@ -31,6 +31,9 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2024xx](CHANGE ### Client - Fix: 타임라인 노트의 리액션 뷰어에 리모트 서버의 커스텀 이모지가 표시되지 않음 +### Server +- Fix: 유니코드 이모지로 리액션한 경우에도 리액션 알림에 `:`가 표시됨 + --- ## 4.8.0 diff --git a/packages/sw/src/scripts/create-notification.ts b/packages/sw/src/scripts/create-notification.ts index 5d1632e0d4..4ce0d0470e 100644 --- a/packages/sw/src/scripts/create-notification.ts +++ b/packages/sw/src/scripts/create-notification.ts @@ -164,7 +164,7 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif const tag = `reaction:${data.body.note.id}`; return [t('_notification.youGotReact', { name: getUserName(data.body.user) }), { // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - body: `:${ reaction }:` + '\n' + data.body.note.text ?? '', + body: (reaction.startsWith(':') ? `:${ reaction }:` : `${ reaction }`) + '\n' + data.body.note.text ?? '', icon: data.body.user.avatarUrl, tag, badge,