From f320b524d727f5328ff71eee31edce33a22802de Mon Sep 17 00:00:00 2001 From: zeripath Date: Sun, 9 May 2021 03:33:49 +0100 Subject: [PATCH] Ensure that ctx.Written is checked after issues(...) calls (#15797) Fix issue noted in #15783 Signed-off-by: Andrew Thornton --- routers/repo/issue.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 37a5266708b8..fb7dac297d7f 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -374,6 +374,9 @@ func Issues(ctx *context.Context) { } issues(ctx, ctx.QueryInt64("milestone"), ctx.QueryInt64("project"), util.OptionalBoolOf(isPullList)) + if ctx.Written() { + return + } var err error // Get milestones