mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Support for multiple emojis at once
This commit is contained in:
parent
4d599612a2
commit
e277b24671
1 changed files with 4 additions and 2 deletions
|
@ -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 a new issue