Merge branch 'fix/console-errors-with-reply-filter' into 'develop'
Fix console errors in status.js See merge request pleroma/pleroma-fe!875
This commit is contained in:
commit
6b4fe1c2d9
1 changed files with 3 additions and 2 deletions
|
@ -173,12 +173,13 @@ const Status = {
|
||||||
if (this.status.type === 'retweet') {
|
if (this.status.type === 'retweet') {
|
||||||
return false
|
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) {
|
for (var i = 0; i < this.status.attentions.length; ++i) {
|
||||||
if (this.status.user.id === this.status.attentions[i].id) {
|
if (this.status.user.id === this.status.attentions[i].id) {
|
||||||
continue
|
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
|
return false
|
||||||
}
|
}
|
||||||
if (this.status.attentions[i].id === this.$store.state.users.currentUser.id) {
|
if (this.status.attentions[i].id === this.$store.state.users.currentUser.id) {
|
||||||
|
|
Loading…
Reference in a new issue