kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
				
				
				
			Fix post without mentions
							rodzic
							
								
									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(),
 | 
			
		||||
  });
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue