fix(api-server): fallback to username for cert (#54183)

This commit is contained in:
Shaun Hamilton
2024-04-03 03:21:04 +02:00
committed by GitHub
parent 117d91e7c4
commit 4803efaaca

View File

@@ -469,7 +469,9 @@ function createShowCert(app) {
});
}
if (!user.name) {
// If the user does not have a name, and have set their name to public,
// warn them. Otherwise, fallback to username
if (!user.name && user.showName) {
return res.json({
messages: [
{