From dd221b9aec6a827da395eaca4f521674bc5be34a Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 4 Oct 2023 20:28:25 +0800 Subject: [PATCH] Fix pr template (#27436) Fix #27431 --- templates/repo/issue/view_content/comments.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 714701939..d3fe424b8 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -496,7 +496,7 @@ {{end}} - {{$diff := (CommentMustAsDiff (index $comms 0))}} + {{$diff := (CommentMustAsDiff ctx (index $comms 0))}} {{if $diff}} {{$file := (index $diff.Files 0)}}