Status normalizer: revert update() refactor
This commit is contained in:
parent
b46f31e9f4
commit
66e51fa5ef
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue