this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #1064 from VirtualWolf/main

Show the emoji shortcode in statuses when hovering, like Mastodon's native's frontend does

authored by

Chee Aun and committed by
GitHub
ea2829da 71e8d42a

+1 -1
+1 -1
src/utils/emojify-text.js
··· 8 8 const { shortcode, staticUrl, url } = emoji; 9 9 text = text.replace( 10 10 new RegExp(`:${shortcode}:`, 'g'), 11 - `<picture><source srcset="${staticUrl}" media="(prefers-reduced-motion: reduce)"></source><img class="shortcode-emoji emoji" src="${url}" alt=":${shortcode}:" width="16" height="16" loading="lazy" decoding="async" fetchPriority="low" /></picture>`, 11 + `<picture><source srcset="${staticUrl}" media="(prefers-reduced-motion: reduce)"></source><img class="shortcode-emoji emoji" src="${url}" alt=":${shortcode}:" title=":${shortcode}:" width="16" height="16" loading="lazy" decoding="async" fetchPriority="low" /></picture>`, 12 12 ); 13 13 }); 14 14 // console.log(text, emojis);