mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-14 12:34:46 +00:00
fix status mutes
This commit is contained in:
parent
af9492977a
commit
8b1aa593a4
2 changed files with 3 additions and 2 deletions
|
@ -119,7 +119,7 @@ const Status = {
|
||||||
return hits
|
return hits
|
||||||
},
|
},
|
||||||
muted () {
|
muted () {
|
||||||
const relationship = this.$store.getters.relationship(this.userId)
|
const relationship = this.$store.getters.relationship(this.status.user.id)
|
||||||
return !this.unmuted && (
|
return !this.unmuted && (
|
||||||
(!(this.inProfile && this.status.user.id === this.profileUserId) && relationship.muting) ||
|
(!(this.inProfile && this.status.user.id === this.profileUserId) && relationship.muting) ||
|
||||||
(!this.inConversation && this.status.thread_muted) ||
|
(!this.inConversation && this.status.thread_muted) ||
|
||||||
|
|
|
@ -238,7 +238,8 @@ export const getters = {
|
||||||
return result
|
return result
|
||||||
},
|
},
|
||||||
relationship: state => id => {
|
relationship: state => id => {
|
||||||
return state.relationships[id] || { id, loading: true }
|
const rel = id && state.relationships[id]
|
||||||
|
return rel || { id, loading: true }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue