boost thingy
This commit is contained in:
parent
8a77bbccc0
commit
d8d679b4dc
1 changed files with 4 additions and 1 deletions
|
@ -381,10 +381,13 @@ const conversation = {
|
||||||
methods: {
|
methods: {
|
||||||
fetchConversation () {
|
fetchConversation () {
|
||||||
if (this.status) {
|
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 }) => {
|
.then(({ ancestors, descendants }) => {
|
||||||
this.$store.dispatch('addNewStatuses', { statuses: ancestors })
|
this.$store.dispatch('addNewStatuses', { statuses: ancestors })
|
||||||
this.$store.dispatch('addNewStatuses', { statuses: descendants })
|
this.$store.dispatch('addNewStatuses', { statuses: descendants })
|
||||||
|
|
||||||
this.setHighlight(this.originalStatusId)
|
this.setHighlight(this.originalStatusId)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue