mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 11:36:34 +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,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