wip
This commit is contained in:
parent
1de55ebe0b
commit
5603f77ffe
|
@ -31,8 +31,8 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { } from 'vue';
|
import { } from 'vue';
|
||||||
import * as Misskey from 'misskey-js';
|
import * as Misskey from 'misskey-js';
|
||||||
import { notePage } from '@/filters/note.js';
|
import { notePage } from '@/utils.js';
|
||||||
import { userPage } from '@/filters/user.js';
|
import { userPage } from '@/utils.js';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
note: Misskey.entities.Note;
|
note: Misskey.entities.Note;
|
||||||
|
|
|
@ -17,3 +17,7 @@ export const userName = (user: Misskey.entities.User) => {
|
||||||
export const userPage = (user: Misskey.Acct, path?: string, absolute = false) => {
|
export const userPage = (user: Misskey.Acct, path?: string, absolute = false) => {
|
||||||
return `${absolute ? url : ''}/@${acct(user)}${(path ? `/${path}` : '')}`;
|
return `${absolute ? url : ''}/@${acct(user)}${(path ? `/${path}` : '')}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const notePage = note => {
|
||||||
|
return `/notes/${note.id}`;
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue