don't display muted label on profile since backend doesn't work this way

improve display logic for mute/block cards
This commit is contained in:
Henry Jameson 2026-01-07 23:15:23 +02:00
commit 0dc8305e95
5 changed files with 15 additions and 25 deletions

View file

@ -15,10 +15,10 @@ const BlockCard = {
return this.relationship.blocking
},
blockExpiryAvailable () {
return this.user.block_expires_at !== undefined
return Object.hasOwn(this.user, 'block_expires_at')
},
blockExpiry () {
return this.user.block_expires_at == null
return this.user.block_expires_at === false
? this.$t('user_card.block_expires_forever')
: this.$t('user_card.block_expires_at', [new Date(this.user.mute_expires_at).toLocaleString()])
},