From d8d679b4dc199d5984ba5fb57b154e52eb6453f0 Mon Sep 17 00:00:00 2001 From: CoolElectronics Date: Fri, 14 Jun 2024 10:41:26 -0400 Subject: [PATCH] boost thingy --- src/components/conversation/conversation.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index f8df9eb5..1e0b3120 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -381,10 +381,13 @@ const conversation = { methods: { fetchConversation () { if (this.status) { - this.$store.state.api.backendInteractor.fetchConversation({ id: this.statusId }) + // misskey specific: if the status is a boosted status, we need to fetch the original status + let id = this.status.retweeted_status ? this.status.retweeted_status.statusnet_conversation_id : this.statusId; + this.$store.state.api.backendInteractor.fetchConversation({ id }) .then(({ ancestors, descendants }) => { this.$store.dispatch('addNewStatuses', { statuses: ancestors }) this.$store.dispatch('addNewStatuses', { statuses: descendants }) + this.setHighlight(this.originalStatusId) }) } else {