better handling of logged-out state
This commit is contained in:
parent
869e7cfe0f
commit
55f5ae6a6c
9 changed files with 17 additions and 15 deletions
|
|
@ -299,11 +299,11 @@ const Status = {
|
|||
},
|
||||
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
|
||||
},
|
||||
userIsMuted() {
|
||||
if (this.statusoid.user.id === this.currentUser.id) return false
|
||||
if (this.statusoid.user.id === this.currentUser?.id) return false
|
||||
const { status } = this
|
||||
const { reblog } = status
|
||||
const relationship = useUsersStore().relationship(status.user.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue