upd: return @ before username

This commit is contained in:
Mar0xy 2023-09-25 12:51:38 +02:00
parent 5cca3e81d2
commit d3832f2560
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828

View File

@ -72,10 +72,10 @@ namespace MisskeyAPI {
host ? host = host.replace("https://", "") : null; host ? host = host.replace("https://", "") : null;
let acct = u.username let acct = u.username
if (host) { if (host) {
acct = `${u.username}@${host}` acct = `@${u.username}@${host}`
} }
if (u.host) { if (u.host) {
acct = `${u.username}@${u.host}` acct = `@${u.username}@${u.host}`
} }
return { return {
id: u.id, id: u.id,
@ -108,10 +108,10 @@ namespace MisskeyAPI {
host ? host = host.replace("https://", "") : null; host ? host = host.replace("https://", "") : null;
let acct = u.username let acct = u.username
if (host) { if (host) {
acct = `${u.username}@${host}` acct = `@${u.username}@${host}`
} }
if (u.host) { if (u.host) {
acct = `${u.username}@${u.host}` acct = `@${u.username}@${u.host}`
} }
return { return {
id: u.id, id: u.id,