From f0a577a856fbd241a0223b45900cbd8a4400fbb5 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 21 Apr 2023 00:07:31 +0800 Subject: [PATCH] fix --- routers/web/repo/issue.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index a9c67a9e3418c..bea35785bbe01 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -1621,8 +1621,10 @@ func ViewIssue(ctx *context.Context) { comment.Type == issues_model.CommentTypeStopTracking { // drop error since times could be pruned from DB.. _ = comment.LoadTime() - } else if comment.Type == issues_model.CommentTypeClose { - // record ID of latest closed comment. + } + + if comment.Type == issues_model.CommentTypeClose || comment.Type == issues_model.CommentTypeMergePull { + // record ID of the latest closed/merged comment. // if PR is closed, the comments whose type is CommentTypePullRequestPush(29) after latestCloseCommentID won't be rendered. latestCloseCommentID = comment.ID }