Merge pull request #2 from acid-chicken/patch-1

Fix bug
This commit is contained in:
syuilo 2018-08-06 23:28:15 +09:00 committed by GitHub
commit 23163b5a99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,8 @@ class Session {
}
private get userName(): string {
return `?[${getUserName(this.user)}](${config.host}/@${this.user.username})${titles.some(x => this.user.username.endsWith(x)) ? '' : 'さん'}`;
const name = getUserName(this.user);
return `?[${name}](${config.host}/@${this.user.username})${titles.some(x => name.endsWith(x)) ? '' : 'さん'}`;
}
private get strength(): number {