From 2bc708f8e6dafb8f35ffe474c37533791b2fa4e0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 23 Dec 2018 03:41:28 +0900 Subject: [PATCH] Fix #3717 (#3723) --- src/client/app/desktop/views/components/post-form.vue | 3 +-- src/client/app/mobile/views/components/post-form.vue | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index 9217c27c9..9417db0f8 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -207,8 +207,7 @@ export default Vue.extend({ this.visibility = this.reply.visibility; } - // ダイレクトへのリプライはリプライ先ユーザーを初期設定 - if (this.reply && this.reply.visibility === 'specified') { + if (this.reply) { this.$root.api('users/show', { userId: this.reply.userId }).then(user => { this.visibleUsers.push(user); }); diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue index e35a64764..bd3154576 100644 --- a/src/client/app/mobile/views/components/post-form.vue +++ b/src/client/app/mobile/views/components/post-form.vue @@ -197,9 +197,8 @@ export default Vue.extend({ this.visibility = this.reply.visibility; } - // ダイレクトへのリプライはリプライ先ユーザーを初期設定 - if (this.reply && this.reply.visibility === 'specified') { - this.$root.api('users/show', { userId: this.reply.userId }).then(user => { + if (this.reply) { + this.$root.api('users/show', { userId: this.reply.userId }).then(user => { this.visibleUsers.push(user); }); }