mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 04:35:32 +00:00
Fix sensitive media being rendered as unavailable
This commit is contained in:
parent
069ff60fdc
commit
fad2575d93
|
@ -87,7 +87,10 @@ proc parseTweet*(node: XmlNode): Tweet =
|
|||
let quote = tweet.select(".QuoteTweet-innerContainer")
|
||||
if quote != nil:
|
||||
result.quote = some(parseQuote(quote))
|
||||
elif tweet.select(".Tombstone") != nil:
|
||||
|
||||
let tombstone = tweet.select(".Tombstone")
|
||||
if tombstone != nil:
|
||||
if "unavailable" in tombstone.innerText():
|
||||
result.quote = some(Quote())
|
||||
|
||||
proc parseThread*(nodes: XmlNode): Thread =
|
||||
|
|
Loading…
Reference in a new issue