mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 14:23:09 +02:00
Add ZWSP when federating emojis for Mastodon compatibility (#5810)
* Add ZWSP when federating emojis for Mastodon compatibility * Use unicode escape sequence
This commit is contained in:
parent
391500bdac
commit
2db861991a
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ export function toHtml(tokens: MfmForest | null, mentionedRemoteUsers: IMentione
|
||||||
},
|
},
|
||||||
|
|
||||||
emoji(token) {
|
emoji(token) {
|
||||||
return doc.createTextNode(token.node.props.emoji ? token.node.props.emoji : `:${token.node.props.name}:`);
|
return doc.createTextNode(token.node.props.emoji ? token.node.props.emoji : `\u200B:${token.node.props.name}:\u200B`);
|
||||||
},
|
},
|
||||||
|
|
||||||
hashtag(token) {
|
hashtag(token) {
|
||||||
|
|
Loading…
Reference in a new issue