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')
|
Event.$off('focus-sidebar')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
originalMessage (message) {
|
||||||
|
if (message.reblog !== null) {
|
||||||
|
return message.reblog
|
||||||
|
} else {
|
||||||
|
return message
|
||||||
|
}
|
||||||
|
},
|
||||||
load () {
|
load () {
|
||||||
this.$store.dispatch('TimelineSpace/Contents/SideBar/TootDetail/fetchToot', this.message)
|
this.$store.dispatch('TimelineSpace/Contents/SideBar/TootDetail/fetchToot', this.originalMessage(this.message))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const toot = this.$refs.original
|
const toot = this.$refs.original
|
||||||
toot.scrollIntoView()
|
toot.scrollIntoView()
|
||||||
|
|
Loading…
Reference in New Issue