diff options
author | David Yip <yipdw@member.fsf.org> | 2018-05-08 09:43:33 -0500 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2018-05-08 09:43:33 -0500 |
commit | 143878d9dadd03347c54c9261b9bc754a1d0f5bc (patch) | |
tree | 0643b1ff72e35e4ea61209e8320a060879951744 /app/javascript/flavours/glitch/reducers/accounts.js | |
parent | 7600067a300b650a6f30da19a469c913243f3a13 (diff) | |
parent | 919e2098cb7c2ff30e19ab4f4e4c8ec9506d230d (diff) |
Merge remote-tracking branch 'glitchsoc/master' into gs-master
Diffstat (limited to 'app/javascript/flavours/glitch/reducers/accounts.js')
-rw-r--r-- | app/javascript/flavours/glitch/reducers/accounts.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/reducers/accounts.js b/app/javascript/flavours/glitch/reducers/accounts.js index 61354f2e1..23fbd999c 100644 --- a/app/javascript/flavours/glitch/reducers/accounts.js +++ b/app/javascript/flavours/glitch/reducers/accounts.js @@ -69,6 +69,14 @@ const normalizeAccount = (state, account) => { account.display_name_html = emojify(escapeTextContentForBrowser(displayName)); account.note_emojified = emojify(account.note); + if (account.fields) { + account.fields = account.fields.map(pair => ({ + ...pair, + name_emojified: emojify(escapeTextContentForBrowser(pair.name)), + value_emojified: emojify(pair.value), + })); + } + if (account.moved) { state = normalizeAccount(state, account.moved); account.moved = account.moved.id; |