Commit e14a1584 authored by kaniini's avatar kaniini

Merge branch 'bugfix/emoji-tooltip' into 'develop'

entity normalizer: add tooltip text to emojis

Closes #544

See merge request pleroma/pleroma-fe!798
parents 23c4c0c7 00ad97fc
Pipeline #12006 passed with stages
in 3 minutes and 35 seconds
......@@ -171,7 +171,7 @@ export const addEmojis = (string, emojis) => {
return emojis.reduce((acc, emoji) => {
return acc.replace(
new RegExp(`:${emoji.shortcode}:`, 'g'),
`<img src='${emoji.url}' alt='${emoji.shortcode}' class='emoji' />`
`<img src='${emoji.url}' alt='${emoji.shortcode}' title='${emoji.shortcode}' class='emoji' />`
}, string)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment