fix: resolve host variable on userDetail
This commit is contained in:
@@ -107,6 +107,7 @@ namespace MisskeyAPI {
|
|||||||
|
|
||||||
export const userDetail = (u: Entity.UserDetail, host: string | null = null): MegalodonEntity.Account => {
|
export const userDetail = (u: Entity.UserDetail, host: string | null = null): MegalodonEntity.Account => {
|
||||||
let acct = u.username;
|
let acct = u.username;
|
||||||
|
host ? host = host.replace("https://", "") : undefined;
|
||||||
let acctUrl = `https://${u.host || host}/@${u.username}`;
|
let acctUrl = `https://${u.host || host}/@${u.username}`;
|
||||||
if (u.host) {
|
if (u.host) {
|
||||||
acct = `${u.username}@${u.host}`;
|
acct = `${u.username}@${u.host}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user