Fix post without mentions
This commit is contained in:
parent
1cb6e4e3b3
commit
1224044876
|
@ -5,8 +5,9 @@ import { accountToMention } from 'soapbox/utils/accounts';
|
|||
// Some backends can return null, or omit these required fields
|
||||
const setRequiredFields = status => {
|
||||
return status.merge({
|
||||
emojis: status.get('emojis') || [],
|
||||
emojis: status.get('emojis') || ImmutableList(),
|
||||
spoiler_text: status.get('spoiler_text') || '',
|
||||
mentions: status.get('mentions') || ImmutableList(),
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue