kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
				
				
				
			pendingStatus: safer `to` fallback
							rodzic
							
								
									d16b764de7
								
							
						
					
					
						commit
						b4a2514cd9
					
				| 
						 | 
				
			
			@ -16,7 +16,7 @@ export const buildStatus = (state, pendingStatus, idempotencyKey) => {
 | 
			
		|||
    const inReplyTo = getStatus(state, { id: pendingStatus.get('in_reply_to_id') });
 | 
			
		||||
 | 
			
		||||
    if (inReplyTo.getIn(['account', 'id']) === me) {
 | 
			
		||||
      mentions = ImmutableOrderedSet([account.get('acct')]).union(pendingStatus.get('to', []));
 | 
			
		||||
      mentions = ImmutableOrderedSet([account.get('acct')]).union(pendingStatus.get('to') || []);
 | 
			
		||||
    } else {
 | 
			
		||||
      mentions = pendingStatus.get('to', []);
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue