mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-24 04:53:33 +00:00
refactor(frontend): ID生成処理を統一
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user