From a64688a1893c2087069d4e1bb26305a06ab0332a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Mon, 6 Aug 2018 23:26:36 +0900 Subject: [PATCH] Fix bug --- src/back.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/back.ts b/src/back.ts index 30f3d92..b05bceb 100644 --- a/src/back.ts +++ b/src/back.ts @@ -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 {