Status normalizer: revert update() refactor

This commit is contained in:
Alex Gleason 2022-03-12 14:29:02 -06:00
parent b46f31e9f4
commit 66e51fa5ef
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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