Fix: Channel 投稿を削除編集すると Channel 外に投稿されるのを修正 (#6707)

This commit is contained in:
sobadon 2020-09-22 00:54:24 +09:00 committed by GitHub
parent df71dbb024
commit c1f6d996f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -551,7 +551,7 @@ export default Vue.extend({
noteId: this.appearNote.id 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 });
}); });
}, },

View File

@ -16,6 +16,7 @@
:initial-text="initialText" :initial-text="initialText"
:initial-note="initialNote" :initial-note="initialNote"
:instant="instant" :instant="instant"
:channel="channel"
@posted="onPosted" @posted="onPosted"
@cancel="onCanceled" @cancel="onCanceled"
style="border-radius: var(--radius);"/> style="border-radius: var(--radius);"/>
@ -62,7 +63,11 @@ export default Vue.extend({
type: Boolean, type: Boolean,
required: false, required: false,
default: false default: false
} },
channel: {
type: Object,
required: false
},
}, },
data() { data() {