From 773d104306cd5729bb4b05333b90ab61067545e8 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Fri, 20 Jul 2018 21:59:09 +0900 Subject: [PATCH] Fix #1868 --- src/client/app/desktop/views/pages/user-list.users.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/app/desktop/views/pages/user-list.users.vue b/src/client/app/desktop/views/pages/user-list.users.vue index 517fe8975..7d9a4606a 100644 --- a/src/client/app/desktop/views/pages/user-list.users.vue +++ b/src/client/app/desktop/views/pages/user-list.users.vue @@ -49,7 +49,8 @@ export default Vue.extend({ add() { (this as any).apis.input({ title: '%i18n:@username%', - }).then(async username => { + }).then(async (username: string) => { + if (username.startsWith('@')) username = username.slice(1); const user = await (this as any).api('users/show', { username });