From abd14ea24e3750981e01424b75ca2d20ef5d2448 Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Mon, 13 Oct 2025 15:09:50 -0600 Subject: [PATCH] bug in url field on user profile --- ui/views/profile.jet | 4 ++-- userdata.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/views/profile.jet b/ui/views/profile.jet index f933e67..c774892 100644 --- a/ui/views/profile.jet +++ b/ui/views/profile.jet @@ -45,10 +45,10 @@
{{ fullname }}
{{ if isset(description) }}
{{ description }}
{{ end }} {{ if isset(email) }}
E-mail: {{ email }}
{{ end }} - {{ if isset(url) }} + {{ if isset(user_url) }}
URL: - {{ url }} + {{ user_url }}
{{ end }} diff --git a/userdata.go b/userdata.go index 36d4573..c5bc6cd 100644 --- a/userdata.go +++ b/userdata.go @@ -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)