diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-06-03 07:37:08 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-06-03 07:37:08 +0900 |
| commit | 93d17aff6ce80b4fdd29f2038087b2e18614772d (patch) | |
| tree | ffbc687c0bb358f9fd00d836882d5c5152b692bf /packages/frontend/src/components/MkTutorialDialog.Note.vue | |
| parent | enhance(frontend): IDにUUIDを使うのをやめる (#16138) (diff) | |
| download | misskey-93d17aff6ce80b4fdd29f2038087b2e18614772d.tar.gz misskey-93d17aff6ce80b4fdd29f2038087b2e18614772d.tar.bz2 misskey-93d17aff6ce80b4fdd29f2038087b2e18614772d.zip | |
refactor(frontend): ID生成処理を統一
Diffstat (limited to 'packages/frontend/src/components/MkTutorialDialog.Note.vue')
| -rw-r--r-- | packages/frontend/src/components/MkTutorialDialog.Note.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkTutorialDialog.Note.vue b/packages/frontend/src/components/MkTutorialDialog.Note.vue index 95f53e7635..b77e67e9c6 100644 --- a/packages/frontend/src/components/MkTutorialDialog.Note.vue +++ b/packages/frontend/src/components/MkTutorialDialog.Note.vue @@ -29,6 +29,7 @@ import { i18n } from '@/i18n.js'; import { globalEvents } from '@/events.js'; import { $i } from '@/i.js'; import MkNote from '@/components/MkNote.vue'; +import { genId } from '@/utility/id.js'; const props = defineProps<{ phase: 'aboutNote' | 'howToReact'; @@ -83,7 +84,7 @@ function doNotification(emoji: string): void { if (!$i || !emoji) return; const notification: Misskey.entities.Notification = { - id: Math.random().toString(), + id: genId(), createdAt: new Date().toUTCString(), type: 'reaction', reaction: emoji, |