Support for multiple emojis at once
This commit is contained in:
parent
4d599612a2
commit
e277b24671
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue