mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 03:26:30 +00:00
Fix sensitive media being rendered as unavailable
This commit is contained in:
parent
069ff60fdc
commit
fad2575d93
1 changed files with 5 additions and 2 deletions
|
@ -87,8 +87,11 @@ proc parseTweet*(node: XmlNode): Tweet =
|
|||
let quote = tweet.select(".QuoteTweet-innerContainer")
|
||||
if quote != nil:
|
||||
result.quote = some(parseQuote(quote))
|
||||
elif tweet.select(".Tombstone") != nil:
|
||||
result.quote = some(Quote())
|
||||
|
||||
let tombstone = tweet.select(".Tombstone")
|
||||
if tombstone != nil:
|
||||
if "unavailable" in tombstone.innerText():
|
||||
result.quote = some(Quote())
|
||||
|
||||
proc parseThread*(nodes: XmlNode): Thread =
|
||||
if nodes == nil: return
|
||||
|
|
Loading…
Reference in a new issue