about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/reducers
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-03-29 14:43:20 +0200
committerThibaut Girka <thib@sitedethib.com>2018-03-29 14:59:20 +0200
commita59c146bf866e28840db37ffe9cfa9759a6497ad (patch)
tree661250627b8e59bfe143151267c0cd9761feb2ca /app/javascript/flavours/glitch/reducers
parent4e45954280390f90dcacc2fd0a33bf75114b38d6 (diff)
[Glitch] Profile redirect notes
Port WebUI changes from 58cede4808baa4db6cc143b80ef23e8179a8415b
Diffstat (limited to 'app/javascript/flavours/glitch/reducers')
-rw-r--r--app/javascript/flavours/glitch/reducers/accounts.js5
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));
 };