aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/shared
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-09-06 15:38:14 +0900
committerGitHub <noreply@github.com>2023-09-06 14:38:14 +0800
commit0850be6750b3df69e2eb5c52e7df53705c517fbc (patch)
tree7e83b220b36af5cbd99cd9d49bf80e886c82f06b /routers/web/shared
parent31c92d9695a43ff77a3eef2e8383343ef60f8ae7 (diff)
downloadgitea-0850be6750b3df69e2eb5c52e7df53705c517fbc.tar.gz
gitea-0850be6750b3df69e2eb5c52e7df53705c517fbc.zip
Fix the display of org level badges (#26504)
Follow #24654 #22705 #24232 In some pages we still have missing badges, for example: ![image](https://github.com/go-gitea/gitea/assets/18380374/f57fae6d-95ad-4996-8881-160c9cd27768) ![image](https://github.com/go-gitea/gitea/assets/18380374/11e86d43-b715-4d14-bdf0-51bf8b5c7b01) ![image](https://github.com/go-gitea/gitea/assets/18380374/61c514e7-d8f6-4c93-a61f-60604619e3a7)
Diffstat (limited to 'routers/web/shared')
-rw-r--r--routers/web/shared/user/header.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/routers/web/shared/user/header.go b/routers/web/shared/user/header.go
index 9b1918ed16..6273e11fc5 100644
--- a/routers/web/shared/user/header.go
+++ b/routers/web/shared/user/header.go
@@ -22,7 +22,6 @@ import (
func prepareContextForCommonProfile(ctx *context.Context) {
ctx.Data["IsPackageEnabled"] = setting.Packages.Enabled
ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled
- ctx.Data["ContextUser"] = ctx.ContextUser
ctx.Data["EnableFeed"] = setting.Other.EnableFeed
ctx.Data["FeedURL"] = ctx.ContextUser.HomeLink()
}