From 659e08da6c91026fc14922b5afbca50abcfbd1cc Mon Sep 17 00:00:00 2001 From: Admin Date: Sun, 11 Jan 2026 02:56:14 +0000 Subject: [PATCH] fix: user profile nil pointer and error page URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix nil pointer on user profile when Repo.Owner is not loaded - Change 500 error page GitHub URL to git.marketally.com/gitcaddy/gitea 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.5 --- templates/status/500.tmpl | 2 +- templates/user/profile.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/status/500.tmpl b/templates/status/500.tmpl index 424f590f84..66168a48f9 100644 --- a/templates/status/500.tmpl +++ b/templates/status/500.tmpl @@ -43,7 +43,7 @@ {{end}}
{{if or .SignedUser.IsAdmin .ShowFooterVersion}}

{{ctx.Locale.Tr "admin.config.app_ver"}}: {{AppVer}}

{{end}} - {{if .SignedUser.IsAdmin}}

{{ctx.Locale.Tr "error.report_message" "https://github.com/go-gitea/gitea/issues"}}

{{end}} + {{if .SignedUser.IsAdmin}}

{{ctx.Locale.Tr "error.report_message" "https://git.marketally.com/gitcaddy/gitea/issues"}}

{{end}}
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index ccd6a078c4..24117bd5e6 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -54,7 +54,7 @@
{{if .Repo.IsPrivate}}{{svg "octicon-lock" 16}}{{else if .Repo.IsFork}}{{svg "octicon-repo-forked" 16}}{{else if .Repo.IsMirror}}{{svg "octicon-mirror" 16}}{{else}}{{svg "octicon-repo" 16}}{{end}} - {{if ne .Repo.OwnerID $.ContextUser.ID}} + {{if and .Repo.Owner (ne .Repo.OwnerID $.ContextUser.ID)}} {{.Repo.Owner.Name}}/ {{end}} {{.Repo.Name}}