diff options
author | David Yip <yipdw@member.fsf.org> | 2018-03-29 09:26:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-29 09:26:31 -0500 |
commit | 1bd12cf8ebaebfac440bcefd241b564997272ffb (patch) | |
tree | 61889ce4f92f8aa107eb92f053f119cfdbd07ea1 /app/javascript/flavours/glitch/reducers | |
parent | 4e45954280390f90dcacc2fd0a33bf75114b38d6 (diff) | |
parent | b5948044b31c548de15337dcdca35b4c894224c0 (diff) |
Merge pull request #404 from ThibG/glitch-soc/features/moved-note
[Untested] [Glitch] Profile redirect notes
Diffstat (limited to 'app/javascript/flavours/glitch/reducers')
-rw-r--r-- | app/javascript/flavours/glitch/reducers/accounts.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/reducers/accounts.js b/app/javascript/flavours/glitch/reducers/accounts.js index 9ca05881a..1c5581347 100644 --- a/app/javascript/flavours/glitch/reducers/accounts.js +++ b/app/javascript/flavours/glitch/reducers/accounts.js @@ -63,6 +63,11 @@ const normalizeAccount = (state, account) => { account.display_name_html = emojify(escapeTextContentForBrowser(displayName)); account.note_emojified = emojify(account.note); + if (account.moved) { + state = normalizeAccount(state, account.moved); + account.moved = account.moved.id; + } + return state.set(account.id, fromJS(account)); }; |