Fix retrieving a retoot's toot tree
This commit is contained in:
parent
7fd49a95e4
commit
9ad4064504
|
@ -90,8 +90,15 @@ export default {
|
|||
Event.$off('focus-sidebar')
|
||||
},
|
||||
methods: {
|
||||
originalMessage (message) {
|
||||
if (message.reblog !== null) {
|
||||
return message.reblog
|
||||
} else {
|
||||
return message
|
||||
}
|
||||
},
|
||||
load () {
|
||||
this.$store.dispatch('TimelineSpace/Contents/SideBar/TootDetail/fetchToot', this.message)
|
||||
this.$store.dispatch('TimelineSpace/Contents/SideBar/TootDetail/fetchToot', this.originalMessage(this.message))
|
||||
.then(() => {
|
||||
const toot = this.$refs.original
|
||||
toot.scrollIntoView()
|
||||
|
|
Loading…
Reference in New Issue