aboutsummaryrefslogtreecommitdiffstats
path: root/modules/markup
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-05-07 16:26:13 +0800
committerGitHub <noreply@github.com>2024-05-07 08:26:13 +0000
commit67c1a07285008cc00036a87cef966c3bd519a50c (patch)
tree19d4ff344c4782596442a8c8de0a20142b0ca8ed /modules/markup
parentebf0c969403d91ed80745ff5bd7dfbdb08174fc7 (diff)
downloadgitea-67c1a07285008cc00036a87cef966c3bd519a50c.tar.gz
gitea-67c1a07285008cc00036a87cef966c3bd519a50c.zip
Refactor AppURL usage (#30885)
Fix #30883 Fix #29591 --------- Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Diffstat (limited to 'modules/markup')
-rw-r--r--modules/markup/html_codepreview.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/html_codepreview.go b/modules/markup/html_codepreview.go
index 5ef2217e3d..5ab9290b3e 100644
--- a/modules/markup/html_codepreview.go
+++ b/modules/markup/html_codepreview.go
@@ -42,7 +42,7 @@ func renderCodeBlock(ctx *RenderContext, node *html.Node) (urlPosStart, urlPosSt
CommitID: node.Data[m[6]:m[7]],
FilePath: node.Data[m[8]:m[9]],
}
- if !httplib.IsCurrentGiteaSiteURL(opts.FullURL) {
+ if !httplib.IsCurrentGiteaSiteURL(ctx.Ctx, opts.FullURL) {
return 0, 0, "", nil
}
u, err := url.Parse(opts.FilePath)