display favs & reblogged users on expanded post in timeline view

This commit is contained in:
Brenden Bice 2019-04-09 04:00:09 -04:00
parent efd20967df
commit f74a6b4b57
3 changed files with 33 additions and 15 deletions

View file

@ -41,7 +41,8 @@ const conversation = {
props: [
'statusoid',
'collapsable',
'isPage'
'isPage',
'timelineName'
],
created () {
if (this.isPage) {
@ -120,8 +121,8 @@ const conversation = {
if (this.status) {
this.$store.state.api.backendInteractor.fetchConversation({id: this.status.id})
.then(({ancestors, descendants}) => {
this.$store.dispatch('fetchFavoritedByUsers', { id: this.status.id })
this.$store.dispatch('fetchRebloggedByUsers', { id: this.status.id })
this.$store.dispatch('fetchFavoritedByUsers', { id: this.statusId, retweetedStatusId: this.status.id, timelineName: this.timelineName })
this.$store.dispatch('fetchRebloggedByUsers', { id: this.statusId, retweetedStatusId: this.status.id, timelineName: this.timelineName })
this.$store.dispatch('addNewStatuses', { statuses: ancestors })
this.$store.dispatch('addNewStatuses', { statuses: descendants })
})

View file

@ -22,6 +22,7 @@
:key="status.id"
:statusoid="status"
:collapsable="true"
:timelineName="timelineName"
/>
</div>
</div>