aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/user
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-05-30 15:04:01 +0800
committerGitHub <noreply@github.com>2024-05-30 07:04:01 +0000
commit015efcd8bfd451ef593192eb43cfcfb7001f7861 (patch)
tree73ebb78e07ed61b2f09f0a042f38bd68cbd0b9f1 /routers/web/user
parentd612a24e3e8cd288047448df86b69d00484dd183 (diff)
downloadgitea-015efcd8bfd451ef593192eb43cfcfb7001f7861.tar.gz
gitea-015efcd8bfd451ef593192eb43cfcfb7001f7861.zip
Use repo as of renderctx's member rather than a repoPath on metas (#29222)
Use a `gitrepo.Repository` in the markup's RenderContext but not store the repository's path.
Diffstat (limited to 'routers/web/user')
-rw-r--r--routers/web/user/home.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/user/home.go b/routers/web/user/home.go
index c3f34039e9..b03a514030 100644
--- a/routers/web/user/home.go
+++ b/routers/web/user/home.go
@@ -262,6 +262,7 @@ func Milestones(ctx *context.Context) {
},
Metas: milestones[i].Repo.ComposeMetas(ctx),
Ctx: ctx,
+ Repo: milestones[i].Repo,
}, milestones[i].Content)
if err != nil {
ctx.ServerError("RenderString", err)