({{ i18n.ts.private }})
@@ -170,17 +170,24 @@ import { MenuItem } from '@/types/menu';
import MkRippleEffect from '@/components/MkRippleEffect.vue';
import { showMovedDialog } from '@/scripts/show-moved-dialog.js';
import { shouldCollapsed } from '@/scripts/collapsed.js';
+import { useRouter } from '@/router.js';
const props = defineProps<{
note: Misskey.entities.Note;
pinned?: boolean;
}>();
+const router = useRouter();
+
const inChannel = inject('inChannel', null);
const currentClip = inject[ | null>('currentClip', null);
let note = $ref(deepClone(props.note));
+function noteclick(id: string) {
+ router.push(`/notes/${id}`);
+}
+
// plugin
if (noteViewInterruptors.length > 0) {
onMounted(async () => {
]