Play animated custom emoji on hover (#11348)
* Play animated custom emoji on hover in status * Play animated custom emoji on hover in display names * Play animated custom emoji on hover in bios/bio fields * Add support for animation on hover on public pages emojis too * Fix tests * Code style cleanup
This commit is contained in:
		@@ -29,7 +29,7 @@ const emojify = (str, customEmojis = {}) => {
 | 
			
		||||
        // if you want additional emoji handler, add statements below which set replacement and return true.
 | 
			
		||||
        if (shortname in customEmojis) {
 | 
			
		||||
          const filename = autoPlayGif ? customEmojis[shortname].url : customEmojis[shortname].static_url;
 | 
			
		||||
          replacement = `<img draggable="false" class="emojione" alt="${shortname}" title="${shortname}" src="${filename}" />`;
 | 
			
		||||
          replacement = `<img draggable="false" class="emojione custom-emoji" alt="${shortname}" title="${shortname}" src="${filename}" data-original="${customEmojis[shortname].url}" data-static="${customEmojis[shortname].static_url}" />`;
 | 
			
		||||
          return true;
 | 
			
		||||
        }
 | 
			
		||||
        return false;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user