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) {
|
if (result.icon) {
|
||||||
iconBody = iconNode(result.icon);
|
iconBody = iconNode(result.icon);
|
||||||
} else if (result.emoji) {
|
} else if (result.emoji) {
|
||||||
const src = Discourse.Emoji.urlFor(result.emoji);
|
iconBody = result.emoji.split('|').map(emoji => {
|
||||||
iconBody = h('img', { className: 'emoji', attributes: { src } });
|
const src = Discourse.Emoji.urlFor(emoji);
|
||||||
|
return h('img', { className: 'emoji', attributes: { src } });
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result.url) {
|
if (result.url) {
|
||||||
|
|
Loading…
Reference in New Issue