Can emoji be rendered with absolute URLs?

This is a problem for the wp-discourse plugin as well. The wp-discourse plugin attempts to fix relative urls with a regular expression, but that has a few problems.

I think the relevant code is here. I’d send a PR, but I don’t know how to properly get a forum’s absolute url from the front end.

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/pretty-text/emoji.js.es6#L60

2 curtidas