diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index 6088e3072a..3726f0a5aa 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -107,6 +107,7 @@ namespace MisskeyAPI { export const userDetail = (u: Entity.UserDetail, host: string | null = null): MegalodonEntity.Account => { let acct = u.username; + host ? host = host.replace("https://", "") : undefined; let acctUrl = `https://${u.host || host}/@${u.username}`; if (u.host) { acct = `${u.username}@${u.host}`;