]> source.dussan.org Git - gitea.git/commit
Remove RenderEmojiPlain from template helper (#29375)
authorwxiaoguang <wxiaoguang@gmail.com>
Sat, 24 Feb 2024 22:34:51 +0000 (06:34 +0800)
committerGitHub <noreply@github.com>
Sat, 24 Feb 2024 22:34:51 +0000 (22:34 +0000)
commit10c7996b5a5c705964fc6cc9c1817eea1fc436ef
treeaa05e188128ff0d985c0302d5b5a133e46046e8f
parentff9dc512438f1a3bc36cc8c419d8450f808517f9
Remove RenderEmojiPlain from template helper (#29375)

RenderEmojiPlain(emoji.ReplaceAliases) should be called explicitly for
some contents, but not for everything.

Actually in modern days, in most cases it doesn't need such
"ReplaceAliases". So only keep it for issue/PR titles.

If anyone really needs to do ReplaceAliases for some contents, I will
propose a following fix.
modules/templates/helper.go
routers/web/repo/issue.go
routers/web/repo/pull.go
templates/base/head.tmpl
templates/repo/issue/choose.tmpl
templates/repo/settings/lfs_file_find.tmpl