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
|
|
@ -51,8 +51,14 @@ export const parseUser = (data) => {
|
|||
output.screen_name = data.acct
|
||||
output.fqn = data.fqn
|
||||
output.statusnet_profile_url = data.url
|
||||
output.mute_expires_at = data.mute_expires_at
|
||||
output.block_expires_at = data.block_expires_at
|
||||
|
||||
if (Object.hasOwn(data, 'mute_expires_at')) {
|
||||
output.mute_expires_at = data.mute_expires_at == null ? false : data.mute_expires_at
|
||||
}
|
||||
|
||||
if (Object.hasOwn(data, 'block_expires_at')) {
|
||||
output.block_expires_at = data.block_expires_at == null ? false : data.block_expires_at
|
||||
}
|
||||
|
||||
// There's nothing else to get
|
||||
if (mastoShort) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue