aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2019-07-07 23:27:46 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2019-07-07 23:27:46 +0000
commit6b4fe1c2d9143578ccc8a6ae5774006b34002ba2 (patch)
treece57791a01988966ad798168e0bbc7b806620732 /src
parent54b0f9013388b24769c587abbf7ca76849ce9570 (diff)
parente5879e3d4d26f6e98e80208b6df5577971989972 (diff)
Merge branch 'fix/console-errors-with-reply-filter' into 'develop'
Fix console errors in status.js See merge request pleroma/pleroma-fe!875
Diffstat (limited to 'src')
-rw-r--r--src/components/status/status.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 199351cb..4b3499cd 100644
--- 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) {