From 8c5f241b49e99950b91254f3fdb617bfd7989c31 Mon Sep 17 00:00:00 2001 From: sebastian-sauer Date: Fri, 30 Jun 2023 18:08:18 +0200 Subject: [PATCH] Use AfterCommitId to get commit for Viewed functionality (#25529) the PullHeadCommitID is not always available when the PR is merged. Not sure if this is the best solution but in my simple tests it looks like this fixes the problem - happy to get any feedback. hopefully fixes https://github.com/go-gitea/gitea/issues/24813 --- templates/repo/diff/box.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 67d0434e4a9a7..b52115a007f82 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -147,7 +147,7 @@ {{end}} {{end}} {{if $isReviewFile}} -