mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 02:13:09 +02:00
upd: return @ before username
This commit is contained in:
parent
5cca3e81d2
commit
d3832f2560
1 changed files with 4 additions and 4 deletions
|
@ -72,10 +72,10 @@ namespace MisskeyAPI {
|
|||
host ? host = host.replace("https://", "") : null;
|
||||
let acct = u.username
|
||||
if (host) {
|
||||
acct = `${u.username}@${host}`
|
||||
acct = `@${u.username}@${host}`
|
||||
}
|
||||
if (u.host) {
|
||||
acct = `${u.username}@${u.host}`
|
||||
acct = `@${u.username}@${u.host}`
|
||||
}
|
||||
return {
|
||||
id: u.id,
|
||||
|
@ -108,10 +108,10 @@ namespace MisskeyAPI {
|
|||
host ? host = host.replace("https://", "") : null;
|
||||
let acct = u.username
|
||||
if (host) {
|
||||
acct = `${u.username}@${host}`
|
||||
acct = `@${u.username}@${host}`
|
||||
}
|
||||
if (u.host) {
|
||||
acct = `${u.username}@${u.host}`
|
||||
acct = `@${u.username}@${u.host}`
|
||||
}
|
||||
return {
|
||||
id: u.id,
|
||||
|
|
Loading…
Reference in a new issue