diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-12-23 03:41:28 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-23 03:41:28 +0900 |
| commit | 2bc708f8e6dafb8f35ffe474c37533791b2fa4e0 (patch) | |
| tree | 0f10d2f0742e8fd637f7997f38437a2dd5434aea /src | |
| parent | Fix indent (diff) | |
| download | sharkey-2bc708f8e6dafb8f35ffe474c37533791b2fa4e0.tar.gz sharkey-2bc708f8e6dafb8f35ffe474c37533791b2fa4e0.tar.bz2 sharkey-2bc708f8e6dafb8f35ffe474c37533791b2fa4e0.zip | |
Fix #3717 (#3723)
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/desktop/views/components/post-form.vue | 3 | ||||
| -rw-r--r-- | 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 9217c27c91..9417db0f85 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 e35a647640..bd3154576b 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); }); } |