* Fix stack overflow on importFetchedAccounts
When the account has moved property, it should process destination
account instead of source account itself.
* Set account id instead of account object for moved property
This restores "foo has moved to" indication on account view, and
fixes `reblog` index on `accounts` object store.
pushUnique(normalAccounts, normalizeAccount(account));
if (account.moved) {
- processAccount(account);
+ processAccount(account.moved);
}
}
account.display_name_html = emojify(escapeTextContentForBrowser(displayName));
account.note_emojified = emojify(account.note);
+ if (account.moved) {
+ account.moved = account.moved.id;
+ }
+
return account;
}