mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 10:18:38 +00:00
Strict pagination check (#32548)
This commit is contained in:
@@ -1108,7 +1108,7 @@ func FindComments(ctx context.Context, opts *FindCommentsOptions) (CommentList,
|
||||
sess.Join("INNER", "issue", "issue.id = comment.issue_id")
|
||||
}
|
||||
|
||||
if opts.Page != 0 {
|
||||
if opts.Page > 0 {
|
||||
sess = db.SetSessionPagination(sess, opts)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user