fix reply popover for muted posts
This commit is contained in:
parent
a07d5a2f35
commit
abb37e2ee8
2 changed files with 4 additions and 0 deletions
|
|
@ -152,6 +152,7 @@ const Status = {
|
||||||
'simpleTree',
|
'simpleTree',
|
||||||
'showOtherRepliesAsButton',
|
'showOtherRepliesAsButton',
|
||||||
'dive',
|
'dive',
|
||||||
|
'ignoreMute',
|
||||||
|
|
||||||
'controlledThreadDisplayStatus',
|
'controlledThreadDisplayStatus',
|
||||||
'controlledToggleThreadDisplay',
|
'controlledToggleThreadDisplay',
|
||||||
|
|
@ -345,6 +346,7 @@ const Status = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
muted() {
|
muted() {
|
||||||
|
if (this.ignoreMute) return false
|
||||||
if (this.statusoid.user.id === this.currentUser.id) return false
|
if (this.statusoid.user.id === this.currentUser.id) return false
|
||||||
return !this.unmuted && !this.shouldNotMute && this.muteReasons.length > 0
|
return !this.unmuted && !this.shouldNotMute && this.muteReasons.length > 0
|
||||||
},
|
},
|
||||||
|
|
@ -366,6 +368,7 @@ const Status = {
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
shouldNotMute() {
|
shouldNotMute() {
|
||||||
|
if (this.ignoreMute) return true
|
||||||
if (this.isFocused) return true
|
if (this.isFocused) return true
|
||||||
const { status } = this
|
const { status } = this
|
||||||
const { reblog } = status
|
const { reblog } = status
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
:is-preview="true"
|
:is-preview="true"
|
||||||
:statusoid="status"
|
:statusoid="status"
|
||||||
:compact="true"
|
:compact="true"
|
||||||
|
:ignore-mute="true"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
v-else-if="error"
|
v-else-if="error"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue