diff options
| author | Brenden Bice <brenden.next@gmail.com> | 2019-04-02 16:00:09 -0400 |
|---|---|---|
| committer | Brenden Bice <brenden.next@gmail.com> | 2019-04-11 23:26:12 -0400 |
| commit | 8a2f55644c56cdedf27c5bdb8bd54c642fadbe4d (patch) | |
| tree | 738e202b76ca8b5765db09c9e2608dc407077f68 /src/components/conversation/conversation.js | |
| parent | 8c9bcdc6c16f3a6dad5131b8163ee9d933b6b952 (diff) | |
improve code quality
Diffstat (limited to 'src/components/conversation/conversation.js')
| -rw-r--r-- | src/components/conversation/conversation.js | 10 |
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 }) } } } |
