diff options
author | zeripath <art27@cantab.net> | 2021-05-09 04:33:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-09 04:33:49 +0200 |
commit | a69fb523a738315cc089eeae98f265d595bfe7dc (patch) | |
tree | 91ebbbc63650bb745921d53f2bff67fc4a8c4b6d /routers/repo/issue.go | |
parent | Display conflict-free merge messages for pull requests (#15773) (diff) | |
download | forgejo-a69fb523a738315cc089eeae98f265d595bfe7dc.tar.xz forgejo-a69fb523a738315cc089eeae98f265d595bfe7dc.zip |
Ensure that ctx.Written is checked after issues(...) calls (#15797)
Fix issue noted in #15783
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to '')
-rw-r--r-- | routers/repo/issue.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 12726cd22c..fd2877e706 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -372,6 +372,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 |