Status normalizer: revert update() refactor

next-old
Alex Gleason 2022-03-12 14:29:02 -06:00
rodzic b46f31e9f4
commit 66e51fa5ef
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 3 dodań i 6 usunięć

Wyświetl plik

@ -127,12 +127,9 @@ const normalizeMention = (mention: ImmutableMap<string, any>) => {
};
const normalizeMentions = (status: ImmutableMap<string, any>) => {
let mentions;
mentions = status.get('mentions', ImmutableList());
mentions = mentions.map(normalizeMention);
return status.set('mentions', mentions);
return status.update('mentions', ImmutableList(), mentions => {
return mentions.map(normalizeMention);
});
};
// Normalize emojis