bug in url field on user profile

This commit is contained in:
2025-10-13 15:09:50 -06:00
parent 2e61a06ad8
commit abd14ea24e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -371,8 +371,8 @@ func ShowProfile(ctxt ui.AmContext) (string, any, error) {
if !ci.PrivateEmail && ci.Email != nil {
ctxt.VarMap().Set("email", *ci.Email)
}
if ci.URL != nil {
ctxt.VarMap().Set("url", *ci.URL)
if ci.URL != nil && *ci.URL != "" {
ctxt.VarMap().Set("user_url", *ci.URL)
}
if ci.Company != nil {
ctxt.VarMap().Set("company", *ci.Company)