host in this server

This commit is contained in:
cutls 2023-02-09 19:36:14 +09:00 committed by cutestnekoaqua
parent cb031efde5
commit 4990900390
No known key found for this signature in database
GPG key ID: 6BF0964A5069C1E0

View file

@ -51,6 +51,7 @@ namespace MisskeyAPI {
}
export const user = (u: Entity.User): MegalodonEntity.Account => {
host = host.replace('https://', '')
let acct = u.username
let acctUrl = `https://${u.host || 'example.com'}/@${u.username}`
if (u.host) {