summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkTutorialDialog.Note.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-06-03 07:37:08 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-06-03 07:37:08 +0900
commit93d17aff6ce80b4fdd29f2038087b2e18614772d (patch)
treeffbc687c0bb358f9fd00d836882d5c5152b692bf /packages/frontend/src/components/MkTutorialDialog.Note.vue
parentenhance(frontend): IDにUUIDを使うのをやめる (#16138) (diff)
downloadmisskey-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.vue3
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,