[GITEA] always load outdated comments

(cherry picked from commit 2615dea9af10b9400bdf96cf8c3cf7c6e349d5ed)
This commit is contained in:
oliverpool 2024-02-02 10:40:27 +01:00 committed by Earl Warren
parent 49b51cbdd7
commit ecfc3cb3f0
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 6 additions and 5 deletions

View file

@ -153,7 +153,7 @@ func UpdateResolveConversation(ctx *context.Context) {
}
func renderConversation(ctx *context.Context, comment *issues_model.Comment, origin string) {
comments, err := issues_model.FetchCodeCommentsByLine(ctx, comment.Issue, ctx.Doer, comment.TreePath, comment.Line, ctx.Data["ShowOutdatedComments"].(bool))
comments, err := issues_model.FetchCodeCommentsByLine(ctx, comment.Issue, ctx.Doer, comment.TreePath, comment.Line, true)
if err != nil {
ctx.ServerError("FetchCodeCommentsByLine", err)
return