This commit is contained in:
syuilo 2024-08-23 13:30:35 +09:00
parent 1de55ebe0b
commit 5603f77ffe
2 changed files with 6 additions and 2 deletions

View File

@ -31,8 +31,8 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup>
import { } from 'vue';
import * as Misskey from 'misskey-js';
import { notePage } from '@/filters/note.js';
import { userPage } from '@/filters/user.js';
import { notePage } from '@/utils.js';
import { userPage } from '@/utils.js';
defineProps<{
note: Misskey.entities.Note;

View File

@ -17,3 +17,7 @@ export const userName = (user: Misskey.entities.User) => {
export const userPage = (user: Misskey.Acct, path?: string, absolute = false) => {
return `${absolute ? url : ''}/@${acct(user)}${(path ? `/${path}` : '')}`;
};
export const notePage = note => {
return `/notes/${note.id}`;
};