diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-08-25 19:07:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-25 19:07:42 +0800 |
commit | 412e5c0946fc5b83456685bc2fb1aed682228f57 (patch) | |
tree | 1dc1a823618d554f740cff449e20c1538ad95ba3 /routers/web/repo/pull.go | |
parent | ee9e83b230981437acf8c331e93a41cdc95af443 (diff) | |
download | gitea-412e5c0946fc5b83456685bc2fb1aed682228f57.tar.gz gitea-412e5c0946fc5b83456685bc2fb1aed682228f57.zip |
Make web context initialize correctly for different cases (#26726)
The web context (modules/context.Context) is quite complex, it's
difficult for the callers to initialize correctly.
This PR introduces a `NewWebContext` function, to make sure the web
context have the same behavior for different cases.
Diffstat (limited to 'routers/web/repo/pull.go')
-rw-r--r-- | routers/web/repo/pull.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go index e3854779fe..e697a0d5b6 100644 --- a/routers/web/repo/pull.go +++ b/routers/web/repo/pull.go @@ -956,7 +956,7 @@ func viewPullFiles(ctx *context.Context, specifiedStartCommit, specifiedEndCommi ctx.ServerError("GetRepoAssignees", err) return } - ctx.Data["Assignees"] = MakeSelfOnTop(ctx, assigneeUsers) + ctx.Data["Assignees"] = MakeSelfOnTop(ctx.Doer, assigneeUsers) handleTeamMentions(ctx) if ctx.Written() { |