From 1ceae0756045c2379b98020ef32a8d37de7859ac Mon Sep 17 00:00:00 2001 From: James Anderson Date: Mon, 29 Oct 2018 17:00:35 -0400 Subject: Fix emojis not showing in commit messages (#5168) Fixes #5150 Signed-off-by: James Anderson --- public/js/index.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'public/js') diff --git a/public/js/index.js b/public/js/index.js index 7700093598..0bc28c4f96 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 -- cgit v1.2.3