aboutsummaryrefslogtreecommitdiffstats
path: root/services/markup/renderhelper_issueicontitle.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/markup/renderhelper_issueicontitle.go')
-rw-r--r--services/markup/renderhelper_issueicontitle.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/markup/renderhelper_issueicontitle.go b/services/markup/renderhelper_issueicontitle.go
index 53a508e908..fd8f9d43fa 100644
--- a/services/markup/renderhelper_issueicontitle.go
+++ b/services/markup/renderhelper_issueicontitle.go
@@ -18,8 +18,8 @@ import (
)
func renderRepoIssueIconTitle(ctx context.Context, opts markup.RenderIssueIconTitleOptions) (_ template.HTML, err error) {
- webCtx, ok := ctx.Value(gitea_context.WebContextKey).(*gitea_context.Context)
- if !ok {
+ webCtx := gitea_context.GetWebContext(ctx)
+ if webCtx == nil {
return "", fmt.Errorf("context is not a web context")
}