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:
parent
949aa90faa
commit
0dc8305e95
5 changed files with 15 additions and 25 deletions
|
|
@ -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()])
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue