Note: Reloading content via XHR sets the emoji correctly. It is only with a fresh load that the emoji code appears (e.g. from clicking on a notification link jumping directly to a topic).
Note to @team this also adds proper support for String#match? which is available in 2.4 Ruby and backported to 2.3, be sure to use that when checking if a string matches a regex, it is faster than =~ cause it does not need to keep track of a pile of globals.