refs #542 Fix username to include domain when the user is another instance

This commit is contained in:
AkiraFukushima 2018-08-20 22:12:07 +09:00
parent a9a9a71494
commit 7eb2e9b239
1 changed files with 4 additions and 4 deletions

View File

@ -149,22 +149,22 @@ export default {
if (account.display_name !== '') {
return account.display_name
} else {
return account.username
return account.acct
}
case DisplayStyle.DisplayName.value:
if (account.display_name !== '') {
return account.display_name
} else {
return account.username
return account.acct
}
case DisplayStyle.Username.value:
return `@${account.username}`
return account.acct
}
},
accountName (account) {
switch (this.displayNameStyle) {
case DisplayStyle.DisplayNameAndUsername.value:
return `@${account.username}`
return `@${account.acct}`
case DisplayStyle.DisplayName.value:
case DisplayStyle.Username.value:
return ''