mirror of
https://github.com/zedeus/nitter
synced 2024-11-15 22:46:52 +01:00
Fix edgecase with nonexistent tweet not withheld
This commit is contained in:
parent
211b086f4d
commit
369dc994b8
@ -88,6 +88,9 @@ proc parseQuote*(quote: XmlNode): Quote =
|
||||
result.getQuoteMedia(quote)
|
||||
|
||||
proc parseTweet*(node: XmlNode): Tweet =
|
||||
if node == nil:
|
||||
return Tweet()
|
||||
|
||||
if "withheld" in node.attr("class"):
|
||||
return Tweet(tombstone: getTombstone(node.selectText(".Tombstone-label")))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user