fix link to post

This commit is contained in:
Hazel K 2024-10-01 22:40:19 -04:00
parent 779b5ef257
commit c8abbcaa33
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,9 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkA v-user-preview="note.user.id" :class="$style.headerName" :to="userPage(note.user)"> <MkA v-user-preview="note.user.id" :class="$style.headerName" :to="userPage(note.user)">
<MkUserName :user="note.user"/> <MkUserName :user="note.user"/>
</MkA> </MkA>
<MkA :to="notePage(note)">
<MkTime :time="note.createdAt" :class="$style.headerTime" colored/> <MkTime :time="note.createdAt" :class="$style.headerTime" colored/>
</MkA>
</header> </header>
<div> <div>
<Mfm :class="$style.text" :text="getNoteSummary(note)" :isBlock="false" :plain="true" :nowrap="false" :isNote="true" :author="note.user"/> <Mfm :class="$style.text" :text="getNoteSummary(note)" :isBlock="false" :plain="true" :nowrap="false" :isNote="true" :author="note.user"/>
@ -26,6 +28,7 @@ SPDX-License-Identifier: AGPL-3.0-only
import * as Misskey from 'misskey-js'; import * as Misskey from 'misskey-js';
import { getNoteSummary } from '@/scripts/get-note-summary.js'; import { getNoteSummary } from '@/scripts/get-note-summary.js';
import { userPage } from '@/filters/user.js'; import { userPage } from '@/filters/user.js';
import { notePage } from '@/filters/note.js';
defineProps<{ defineProps<{
note: Misskey.entities.Note note: Misskey.entities.Note