better handling of logged-out state

This commit is contained in:
Henry Jameson 2026-08-14 19:38:37 +03:00
commit 55f5ae6a6c
9 changed files with 17 additions and 15 deletions

View file

@ -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)