logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: 6b4fe1c2d9143578ccc8a6ae5774006b34002ba2
parent: 54b0f9013388b24769c587abbf7ca76849ce9570
Author: HJ <30-hj@users.noreply.git.pleroma.social>
Date:   Sun,  7 Jul 2019 23:27:46 +0000

Merge branch 'fix/console-errors-with-reply-filter' into 'develop'

Fix console errors in status.js

See merge request pleroma/pleroma-fe!875

Diffstat:

Msrc/components/status/status.js5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/components/status/status.js b/src/components/status/status.js @@ -173,12 +173,13 @@ const Status = { if (this.status.type === 'retweet') { return false } - var checkFollowing = this.$store.state.config.replyVisibility === 'following' + const checkFollowing = this.$store.state.config.replyVisibility === 'following' for (var i = 0; i < this.status.attentions.length; ++i) { if (this.status.user.id === this.status.attentions[i].id) { continue } - if (checkFollowing && this.$store.getters.findUser(this.status.attentions[i].id).following) { + const taggedUser = this.$store.getters.findUser(this.status.attentions[i].id) + if (checkFollowing && taggedUser && taggedUser.following) { return false } if (this.status.attentions[i].id === this.$store.state.users.currentUser.id) {