FIX: In TimelineSinglePost, fixes an 'parentAnnounce is undefined' error message when

interacting with a remote post

Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
pull/799/head
Cyrille Bollu 2019-10-20 20:03:06 +02:00
rodzic c37b639ddb
commit 5dc89e5dac
1 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -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)