aboutsummaryrefslogtreecommitdiff
path: root/src/components/conversation/conversation.js
diff options
context:
space:
mode:
authorBrenden Bice <brenden.next@gmail.com>2019-04-02 16:00:09 -0400
committerBrenden Bice <brenden.next@gmail.com>2019-04-11 23:26:12 -0400
commit8a2f55644c56cdedf27c5bdb8bd54c642fadbe4d (patch)
tree738e202b76ca8b5765db09c9e2608dc407077f68 /src/components/conversation/conversation.js
parent8c9bcdc6c16f3a6dad5131b8163ee9d933b6b952 (diff)
improve code quality
Diffstat (limited to 'src/components/conversation/conversation.js')
-rw-r--r--src/components/conversation/conversation.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js
index ba90746e..115ac640 100644
--- a/src/components/conversation/conversation.js
+++ b/src/components/conversation/conversation.js
@@ -121,8 +121,8 @@ const conversation = {
this.$store.state.api.backendInteractor.fetchConversation({id: this.status.id})
.then(({ancestors, descendants}) => {
const ancestorId = ancestors.length ? ancestors[0].id : this.status.id
- this.fetchFavoritedByUsers(ancestorId)
- this.fetchRebloggedByUsers(ancestorId)
+ this.$store.dispatch('fetchFavoritedByUsers', { id: ancestorId })
+ this.$store.dispatch('fetchRebloggedByUsers', { id: ancestorId })
this.$store.dispatch('addNewStatuses', { statuses: ancestors })
this.$store.dispatch('addNewStatuses', { statuses: descendants })
})
@@ -151,12 +151,6 @@ const conversation = {
if (!this.expanded) {
this.setHighlight(null)
}
- },
- fetchFavoritedByUsers (id) {
- this.$store.dispatch('fetchFavoritedByUsers', { id })
- },
- fetchRebloggedByUsers (id) {
- this.$store.dispatch('fetchRebloggedByUsers', { id })
}
}
}