fix: correct acctUri

This commit is contained in:
Marie 2023-11-25 21:02:41 +01:00 committed by GitHub
parent a5fccab128
commit 5131a3414d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ export class MastoConverters {
const fqn = `${user.username}@${user.host ?? this.config.hostname}`; const fqn = `${user.username}@${user.host ?? this.config.hostname}`;
let acct = user.username; let acct = user.username;
let acctUrl = `https://${user.host || this.config.host}/@${user.username}`; let acctUrl = `https://${user.host || this.config.host}/@${user.username}`;
const acctUri = `https://${this.config.host}/@${user.id}`; const acctUri = `https://${this.config.host}/users/${user.id}`;
if (user.host) { if (user.host) {
acct = `${user.username}@${user.host}`; acct = `${user.username}@${user.host}`;
acctUrl = `https://${user.host}/@${user.username}`; acctUrl = `https://${user.host}/@${user.username}`;