From 8291dfa0458baca76ba7fa68bb410704e18cb394 Mon Sep 17 00:00:00 2001 From: riku6460 <17585784+riku6460@users.noreply.github.com> Date: Tue, 26 Sep 2023 06:04:48 +0900 Subject: [PATCH] Fix frontend loading --- packages/frontend/src/filters/user.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/filters/user.ts b/packages/frontend/src/filters/user.ts index 8d206037257b..960dd58040e2 100644 --- a/packages/frontend/src/filters/user.ts +++ b/packages/frontend/src/filters/user.ts @@ -4,16 +4,17 @@ */ import * as Misskey from 'misskey-js'; +import * as Acct from 'misskey-js/src/acct.js'; import { url } from '@/config.js'; -export const acct = (user: misskey.Acct) => { - return Misskey.acct.toString(user); +export const acct = (user: Misskey.Acct) => { + return Acct.toString(user); }; export const userName = (user: Misskey.entities.User) => { return user.name || user.username; }; -export const userPage = (user: misskey.Acct, path?, absolute = false) => { +export const userPage = (user: Misskey.Acct, path?, absolute = false) => { return `${absolute ? url : ''}/@${acct(user)}${(path ? `/${path}` : '')}`; };