Support for multiple emojis at once

This commit is contained in:
Robin Ward 2016-02-18 17:10:27 -05:00
parent 4d599612a2
commit e277b24671
1 changed files with 4 additions and 2 deletions

View File

@ -72,8 +72,10 @@ export default createWidget('poster-name', {
if (result.icon) {
iconBody = iconNode(result.icon);
} else if (result.emoji) {
const src = Discourse.Emoji.urlFor(result.emoji);
iconBody = h('img', { className: 'emoji', attributes: { src } });
iconBody = result.emoji.split('|').map(emoji => {
const src = Discourse.Emoji.urlFor(emoji);
return h('img', { className: 'emoji', attributes: { src } });
});
}
if (result.url) {