diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index 09277bdcb..94f1d5d97 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -429,7 +429,7 @@ function populate_speed_emoji_modal(results, textbox) close_inline_speed_emoji_modal() textbox.value = textbox.value.replace(new RegExp(current_word+"(?=\\s|$)", "gi"), `:${name}: `) textbox.focus() - if (location.pathname != '/chat') { + if (typeof markdown === "function") { markdown(textbox) } }); diff --git a/files/templates/post_listing.html b/files/templates/post_listing.html index 597776939..166b3e2b0 100644 --- a/files/templates/post_listing.html +++ b/files/templates/post_listing.html @@ -261,6 +261,7 @@ {% if v.admin_level >= PERMS['USER_BAN'] %} {% include "modals/punish.html" %} {% endif %} + {% include "modals/emoji.html" %} {% endif %}