aboutsummaryrefslogtreecommitdiffstats
path: root/modules/markup/html.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-09-15 09:45:27 +0100
committerGitHub <noreply@github.com>2021-09-15 09:45:27 +0100
commit976db2a8b78b18f6ca934b9da93b4e3b2c746de5 (patch)
treeff051e8e51e1fd26378908c15b056415a3303483 /modules/markup/html.go
parentfc97e0626eafc5024c91d4f0ca96dbc81451897b (diff)
downloadgitea-976db2a8b78b18f6ca934b9da93b4e3b2c746de5.tar.gz
gitea-976db2a8b78b18f6ca934b9da93b4e3b2c746de5.zip
Do not show issue context popup on external issues (#17050)
The issues pop-up context cannot work for external issues - therefore do not show these. Fix #17047 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/markup/html.go')
-rw-r--r--modules/markup/html.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/html.go b/modules/markup/html.go
index f279e23bff..4d6574a596 100644
--- a/modules/markup/html.go
+++ b/modules/markup/html.go
@@ -830,7 +830,7 @@ func issueIndexPatternProcessor(ctx *RenderContext, node *html.Node) {
reftext := node.Data[ref.RefLocation.Start:ref.RefLocation.End]
if exttrack && !ref.IsPull {
ctx.Metas["index"] = ref.Issue
- link = createLink(com.Expand(ctx.Metas["format"], ctx.Metas), reftext, "ref-issue")
+ link = createLink(com.Expand(ctx.Metas["format"], ctx.Metas), reftext, "ref-issue ref-external-issue")
} else {
// Path determines the type of link that will be rendered. It's unknown at this point whether
// the linked item is actually a PR or an issue. Luckily it's of no real consequence because