fixes to mute menu and mute description
This commit is contained in:
parent
8be36ae07b
commit
d01e069bf2
7 changed files with 34 additions and 26 deletions
|
|
@ -255,7 +255,7 @@ const Status = {
|
|||
muteReasons () {
|
||||
return [
|
||||
this.userIsMuted ? 'user' : null,
|
||||
status.thread_muted ? 'thread' : null,
|
||||
this.status.thread_muted ? 'thread' : null,
|
||||
(this.muteWordHits.length > 0) ? 'wordfilter' : null,
|
||||
(this.muteBotStatuses && this.botStatus) ? 'bot' : null,
|
||||
(this.muteSensitiveStatuses && this.sensitiveStatus) ? 'nsfw' : null
|
||||
|
|
@ -280,14 +280,19 @@ const Status = {
|
|||
case 'nsfw': return this.$t('status.sensitive_muted')
|
||||
}
|
||||
}
|
||||
return this.$t(
|
||||
'status.multi_reason_mute',
|
||||
{
|
||||
main: mainReason(),
|
||||
numReasonsMore: this.muteReasons.length - 1
|
||||
},
|
||||
this.muteReasons.length - 1
|
||||
)
|
||||
console.log(this.status)
|
||||
if (this.muteReasons.length > 1) {
|
||||
return this.$t(
|
||||
'status.multi_reason_mute',
|
||||
{
|
||||
main: mainReason(),
|
||||
numReasonsMore: this.muteReasons.length - 1
|
||||
},
|
||||
this.muteReasons.length - 1
|
||||
)
|
||||
} else {
|
||||
return mainReason()
|
||||
}
|
||||
},
|
||||
muted () {
|
||||
if (this.statusoid.user.id === this.currentUser.id) return false
|
||||
|
|
@ -299,7 +304,7 @@ const Status = {
|
|||
const { reblog } = status
|
||||
const relationship = this.$store.getters.relationship(status.user.id)
|
||||
const relationshipReblog = reblog && this.$store.getters.relationship(reblog.user.id)
|
||||
return status.muted ||
|
||||
return (status.muted && !status.thread_muted) ||
|
||||
// Reprööt of a muted post according to BE
|
||||
(reblog && reblog.muted) ||
|
||||
// Muted user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue