From c1f6d996f678e352841504f16f145f29f5587e49 Mon Sep 17 00:00:00 2001 From: sobadon Date: Tue, 22 Sep 2020 00:54:24 +0900 Subject: Fix: Channel 投稿を削除編集すると Channel 外に投稿されるのを修正 (#6707) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/components/note.vue | 2 +- src/client/components/post-form-dialog.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/components/note.vue b/src/client/components/note.vue index a731f9a36e..31acd49003 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -551,7 +551,7 @@ export default Vue.extend({ noteId: this.appearNote.id }); - this.$root.post({ initialNote: this.appearNote, renote: this.appearNote.renote, reply: this.appearNote.reply }); + this.$root.post({ initialNote: this.appearNote, renote: this.appearNote.renote, reply: this.appearNote.reply, channel: this.appearNote.channel }); }); }, diff --git a/src/client/components/post-form-dialog.vue b/src/client/components/post-form-dialog.vue index 14227fec5d..8a56dd24e2 100644 --- a/src/client/components/post-form-dialog.vue +++ b/src/client/components/post-form-dialog.vue @@ -16,6 +16,7 @@ :initial-text="initialText" :initial-note="initialNote" :instant="instant" + :channel="channel" @posted="onPosted" @cancel="onCanceled" style="border-radius: var(--radius);"/> @@ -62,7 +63,11 @@ export default Vue.extend({ type: Boolean, required: false, default: false - } + }, + channel: { + type: Object, + required: false + }, }, data() { -- cgit v1.2.3-freya