mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-29 17:33:02 +00:00
fix: resolve host variable on userDetail
This commit is contained in:
parent
15c43372f9
commit
2ea6e0a579
1 changed files with 1 additions and 0 deletions
|
@ -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}`;
|
||||
|
|
Loading…
Reference in a new issue