Fix post without mentions

This commit is contained in:
Alex Gleason 2022-02-21 19:21:13 -05:00
parent 1cb6e4e3b3
commit 1224044876
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 1 deletions

View File

@ -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(),
});
};