don't crash admin-user page if one of the requests fails

This commit is contained in:
Hazelnoot 2025-09-14 22:37:20 -04:00
parent 477a01fab6
commit c539734ec2

View file

@ -496,14 +496,14 @@ function createFetcher(withHint = true) {
return () => Promise.all([
(withHint && props.userHint) ? props.userHint : misskeyApi('users/show', {
userId: props.userId,
}),
}).catch(() => null),
(withHint && props.infoHint) ? props.infoHint : misskeyApi('admin/show-user', {
userId: props.userId,
}),
}).catch(() => null),
iAmAdmin
? (withHint && props.ipsHint) ? props.ipsHint : misskeyApi('admin/get-user-ips', {
userId: props.userId,
})
}).catch(() => null)
: null,
iAmAdmin
? (withHint && props.apHint) ? props.apHint : misskeyApi('ap/get', {