Add missing tombstones
This commit is contained in:
		
							parent
							
								
									21fdbb88ec
								
							
						
					
					
						commit
						a2c0e1a21d
					
				| 
						 | 
				
			
			@ -379,5 +379,5 @@ proc parsePhotoRail*(tl: Timeline): PhotoRail =
 | 
			
		|||
    result.add GalleryPhoto(
 | 
			
		||||
      url: url,
 | 
			
		||||
      tweetId: $tweet.id,
 | 
			
		||||
      color: "#161616" # TODO: photo rail specific parser?
 | 
			
		||||
      color: "#161616"
 | 
			
		||||
    )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -102,6 +102,10 @@ proc getTombstone*(js: JsonNode): string =
 | 
			
		|||
    result = "This account owner limits who can view their tweets."
 | 
			
		||||
  of "Missing":
 | 
			
		||||
    result = "This tweet is unavailable."
 | 
			
		||||
  of "Deactivated":
 | 
			
		||||
    result = "This tweet is from an account that no longer exists."
 | 
			
		||||
  of "Bounced":
 | 
			
		||||
    result = "This tweet violated the Twitter rules."
 | 
			
		||||
  else:
 | 
			
		||||
    result = js{"tombstoneInfo", "richText", "text"}.getStr
 | 
			
		||||
    if epitaph.len > 0 or result.len > 0:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue