1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-02-08 07:48:45 +01:00

Merge pull request #546 from h3poteto/iss-542

closes #542 Fix username to include domain when the user is another instance
This commit is contained in:
AkiraFukushima 2018-08-20 22:14:59 +09:00 committed by GitHub
commit 4bb68e8840
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,22 +152,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 ''