Skip to content
Snippets Groups Projects
Commit 1aa253c4 authored by Thibaut Girka's avatar Thibaut Girka Committed by ThibG
Browse files

Display custom emoji in account notes in WebUI (fixes #595)

parent c99054ec
Branches
Tags
No related merge requests found
......@@ -83,7 +83,7 @@ export default class Header extends ImmutablePureComponent {
actionBtn = '';
}
const { text, metadata } = processBio(account.get('note'));
const { text, metadata } = processBio(account.get('note_emojified'));
return (
<div className='account__header__wrapper'>
......@@ -121,8 +121,8 @@ export default class Header extends ImmutablePureComponent {
<div className='account__header__fields'>
{metadata.map((pair, i) => (
<dl key={i}>
<dt dangerouslySetInnerHTML={{ __html: emojify(pair[0]) }} title={pair[0]} />
<dd dangerouslySetInnerHTML={{ __html: emojify(pair[1]) }} title={pair[1]} />
<dt dangerouslySetInnerHTML={{ __html: pair[0] }} title={pair[0]} />
<dd dangerouslySetInnerHTML={{ __html: pair[1] }} title={pair[1]} />
</dl>
))}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment