diff options
| author | taehoon <th.dev91@gmail.com> | 2019-06-27 08:14:54 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-07-07 22:49:18 -0400 |
| commit | ab4d7d9616319778b7ed5d79ca1f389c9e439113 (patch) | |
| tree | 74c8100d633c72d6f542ba70566fdf74fdf5cb6e /src/components/status/status.js | |
| parent | e9b6e0e2b74ac4f9c8558c3329c70eee1c869abc (diff) | |
refetch favs and repeats separately
Diffstat (limited to 'src/components/status/status.js')
| -rw-r--r-- | src/components/status/status.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 6f83dbe0..284c657c 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -402,9 +402,6 @@ const Status = { setMedia () { const attachments = this.attachmentSize === 'hide' ? this.status.attachments : this.galleryAttachments return () => this.$store.dispatch('setMedia', attachments) - }, - refetchFavsAndRepeats () { - this.$store.dispatch('fetchFavsAndRepeats', this.status.id) } }, watch: { @@ -425,12 +422,12 @@ const Status = { }, 'status.repeat_num': function (num) { if (this.isFocused && this.statusFromGlobalRepository.rebloggedBy && this.statusFromGlobalRepository.rebloggedBy.length !== num) { - this.refetchFavsAndRepeats() + this.$store.dispatch('fetchRepeats', this.status.id) } }, 'status.fave_num': function (num) { if (this.isFocused && this.statusFromGlobalRepository.favoritedBy && this.statusFromGlobalRepository.favoritedBy.length !== num) { - this.refetchFavsAndRepeats() + this.$store.dispatch('fetchFavs', this.status.id) } } }, |
