refactor(frontend): ID生成処理を統一

This commit is contained in:
syuilo
2025-06-03 07:37:08 +09:00
parent 3bc81522c6
commit 93d17aff6c
16 changed files with 35 additions and 20 deletions

View File

@@ -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,