diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-10 03:02:06 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-10 03:02:06 +0900 |
| commit | bc3a5f35124fff69e11e7c23bbd9798be8f9077c (patch) | |
| tree | 1a6e2e6da8e719c2c4261978da73fa786e984179 /src/client/app/desktop/views/components | |
| parent | Resolve #2101 (diff) | |
| download | misskey-bc3a5f35124fff69e11e7c23bbd9798be8f9077c.tar.gz misskey-bc3a5f35124fff69e11e7c23bbd9798be8f9077c.tar.bz2 misskey-bc3a5f35124fff69e11e7c23bbd9798be8f9077c.zip | |
Fix #2596
Diffstat (limited to 'src/client/app/desktop/views/components')
| -rw-r--r-- | src/client/app/desktop/views/components/post-form.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index b2f0954d97..fd489283f1 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -63,6 +63,7 @@ import MkVisibilityChooser from '../../../common/views/components/visibility-cho import parse from '../../../../../mfm/parse'; import { host } from '../../../config'; import { erase } from '../../../../../prelude/array'; +import parseAcct from '../../../../../misc/acct/parse'; export default Vue.extend({ components: { @@ -337,10 +338,9 @@ export default Vue.extend({ addVisibleUser() { (this as any).apis.input({ title: '%i18n:@enter-username%' - }).then(username => { - (this as any).api('users/show', { - username - }).then(user => { + }).then(acct => { + if (acct.startsWith('@')) acct = acct.substr(1); + (this as any).api('users/show', parseAcct(acct)).then(user => { this.visibleUsers.push(user); }); }); |