diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-12-19 11:16:29 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-12-19 11:16:29 +0900 |
| commit | 00f979f0e65d92d4ad522146e5543a651485933c (patch) | |
| tree | 37581222706f296b2b13860315eb52143a553e46 /src/client/app/mobile/views/components | |
| parent | Refactor (diff) | |
| download | misskey-00f979f0e65d92d4ad522146e5543a651485933c.tar.gz misskey-00f979f0e65d92d4ad522146e5543a651485933c.tar.bz2 misskey-00f979f0e65d92d4ad522146e5543a651485933c.zip | |
Fix bug
Diffstat (limited to 'src/client/app/mobile/views/components')
| -rw-r--r-- | src/client/app/mobile/views/components/post-form.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue index d9cf1471c5..e35a647640 100644 --- a/src/client/app/mobile/views/components/post-form.vue +++ b/src/client/app/mobile/views/components/post-form.vue @@ -66,6 +66,7 @@ import { host } from '../../../config'; import { erase, unique } from '../../../../../prelude/array'; import { length } from 'stringz'; import { toASCII } from 'punycode'; +import extractMentions from '../../../../../misc/extract-mentions'; export default Vue.extend({ i18n: i18n('mobile/views/components/post-form.vue'), @@ -174,7 +175,7 @@ export default Vue.extend({ if (this.reply && this.reply.text != null) { const ast = parse(this.reply.text); - for (const x of ast.filter(t => t.type == 'mention')) { + for (const x of extractMentions(ast)) { const mention = x.host ? `@${x.username}@${toASCII(x.host)}` : `@${x.username}`; // 自分は除外 |