fix status mutes

このコミットが含まれているのは:
Shpuld Shpuldson 2020-04-27 10:06:17 +03:00
コミット 8b1aa593a4
2個のファイルの変更3行の追加2行の削除

ファイルの表示

@ -119,7 +119,7 @@ const Status = {
return hits
},
muted () {
const relationship = this.$store.getters.relationship(this.userId)
const relationship = this.$store.getters.relationship(this.status.user.id)
return !this.unmuted && (
(!(this.inProfile && this.status.user.id === this.profileUserId) && relationship.muting) ||
(!this.inConversation && this.status.thread_muted) ||

ファイルの表示

@ -238,7 +238,8 @@ export const getters = {
return result
},
relationship: state => id => {
return state.relationships[id] || { id, loading: true }
const rel = id && state.relationships[id]
return rel || { id, loading: true }
}
}