From fb74fe99d65c05f0f711666058f4d46b46f37c08 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 11 Oct 2023 22:02:15 +0800 Subject: [PATCH] Fix template bug (#27581) Regression from #27414 --- templates/user/dashboard/feeds.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index 7a2c4c7815..3a080a3505 100644 --- a/templates/user/dashboard/feeds.tmpl +++ b/templates/user/dashboard/feeds.tmpl @@ -83,6 +83,7 @@ {{if .GetOpType.InActions "commit_repo" "mirror_sync_push"}} {{$push := ActionContent2Commits .}} {{$repoLink := (.GetRepoLink ctx)}} + {{$repo := .Repo}}
{{range $push.Commits}} {{$commitLink := printf "%s/commit/%s" $repoLink .Sha1}} @@ -90,7 +91,7 @@ {{ShortSha .Sha1}} - {{RenderCommitMessage $.Context .Message $repoLink ($.ComposeMetas ctx)}} + {{RenderCommitMessage $.Context .Message $repoLink ($repo.ComposeMetas ctx)}}
{{end}}