summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-20 21:59:09 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-20 21:59:09 +0900
commit773d104306cd5729bb4b05333b90ab61067545e8 (patch)
tree53792dae5b42d6ea8462bf41da3e6119788eb01f /src
parentMerge pull request #1936 from syuilo/patch-1803 (diff)
downloadsharkey-773d104306cd5729bb4b05333b90ab61067545e8.tar.gz
sharkey-773d104306cd5729bb4b05333b90ab61067545e8.tar.bz2
sharkey-773d104306cd5729bb4b05333b90ab61067545e8.zip
Fix #1868
Diffstat (limited to 'src')
-rw-r--r--src/client/app/desktop/views/pages/user-list.users.vue3
1 files changed, 2 insertions, 1 deletions
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 517fe89750..7d9a4606a1 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
});