From 5dc89e5dac1b52cf998dea668990265ace31acc7 Mon Sep 17 00:00:00 2001 From: Cyrille Bollu Date: Sun, 20 Oct 2019 20:03:06 +0200 Subject: [PATCH] FIX: In TimelineSinglePost, fixes an 'parentAnnounce is undefined' error message when interacting with a remote post Signed-off-by: Cyrille Bollu --- src/views/TimelineSinglePost.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/TimelineSinglePost.vue b/src/views/TimelineSinglePost.vue index 4b6a41ee..fda37820 100644 --- a/src/views/TimelineSinglePost.vue +++ b/src/views/TimelineSinglePost.vue @@ -50,10 +50,16 @@ export default { // Automaticaly like, boost, or prepare reply switch (this.$route.query.type) { case ('boost'): - setTimeout(this.$store.dispatch('postBoost', { post: this.mainPost }), 2000) + setTimeout(this.$store.dispatch('postBoost', { + post: this.mainPost, + parentAnnounce: { } + }), 2000) break case ('like'): - setTimeout(this.$store.dispatch('postLike', { post: this.mainPost }), 2000) + setTimeout(this.$store.dispatch('postLike', { + post: this.mainPost, + parentAnnounce: { } + }), 2000) break case ('reply'): setTimeout(this.$root.$emit('composer-reply', this.mainPost), 2000)