mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 18:32:09 +08:00
FIX: Add alt
and title
attribute to emoji widget.
This commit is contained in:
@ -93,11 +93,6 @@ class PluginApi {
|
||||
if (result.icon) {
|
||||
iconBody = iconNode(result.icon);
|
||||
} else if (result.emoji) {
|
||||
iconBody = result.emoji.split('|').map(emoji => {
|
||||
const src = emojiUrlFor(emoji);
|
||||
return dec.h('img', { className: 'emoji', attributes: { src } });
|
||||
});
|
||||
|
||||
iconBody = result.emoji.split('|').map(name => dec.attach('emoji', { name }));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user