loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix the issue ref rendering for wiki (#28556)

Fix #28526, regression of
* #26365

(although the author of #26365 has recent activities, but there is no
response for the regression, so I proposed this quick fix and keep the
fix simple to make it easier to backport to 1.21)

authored by

wxiaoguang and committed by
GitHub
e4a24d67 57742169

+3 -1
+3 -1
modules/markup/html.go
··· 852 852 } 853 853 854 854 func issueIndexPatternProcessor(ctx *RenderContext, node *html.Node) { 855 - if ctx.Metas == nil || ctx.Metas["mode"] == "document" { 855 + // FIXME: the use of "mode" is quite dirty and hacky, for example: what is a "document"? how should it be rendered? 856 + // The "mode" approach should be refactored to some other more clear&reliable way. 857 + if ctx.Metas == nil || (ctx.Metas["mode"] == "document" && !ctx.IsWiki) { 856 858 return 857 859 } 858 860 var (