And another one
This commit is contained in:
		
							parent
							
								
									ad9083149c
								
							
						
					
					
						commit
						7edc5646fe
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -301,7 +301,8 @@ proc parseGlobalObjects(js: JsonNode): GlobalObjects =
 | 
			
		|||
 | 
			
		||||
proc parseStatus*(js: JsonNode): Tweet =
 | 
			
		||||
  with e, js{"errors"}:
 | 
			
		||||
    if e.getError in {tweetNotFound, tweetUnavailable, tweetCensored, doesntExist, tweetNotAuthorized}:
 | 
			
		||||
    if e.getError in {tweetNotFound, tweetUnavailable, tweetCensored, doesntExist,
 | 
			
		||||
                      tweetNotAuthorized, suspended}:
 | 
			
		||||
      return
 | 
			
		||||
 | 
			
		||||
  result = parseTweet(js, js{"card"})
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue