diff --git a/public/js/index.js b/public/js/index.js index 770009359..0bc28c4f9 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1766,6 +1766,11 @@ $(document).ready(function () { var hasEmoji = document.getElementsByClassName('has-emoji'); for (var i = 0; i < hasEmoji.length; i++) { emojify.run(hasEmoji[i]); + for (var j = 0; j < hasEmoji[i].childNodes.length; j++) { + if (hasEmoji[i].childNodes[j].nodeName === "A") { + emojify.run(hasEmoji[i].childNodes[j]) + } + } } // Clipboard JS diff --git a/templates/repo/diff/page.tmpl b/templates/repo/diff/page.tmpl index ba0cf348d..cc8811848 100644 --- a/templates/repo/diff/page.tmpl +++ b/templates/repo/diff/page.tmpl @@ -9,7 +9,7 @@ {{.i18n.Tr "repo.diff.browse_source"}} -
{{RenderCommitBody .Commit.Message $.RepoLink $.Repository.ComposeMetas}}{{end}}