mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Display unavailable quotes
This commit is contained in:
parent
8773fd901b
commit
b708c78c42
4 changed files with 14 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ proc parseQuote*(quote: XmlNode): Quote =
|
|||
text: getQuoteText(quote),
|
||||
reply: parseTweetReply(quote),
|
||||
hasThread: quote.select(".self-thread-context") != nil,
|
||||
available: true
|
||||
)
|
||||
|
||||
result.profile = Profile(
|
||||
|
|
@ -85,6 +86,8 @@ 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())
|
||||
|
||||
proc parseThread*(nodes: XmlNode): Thread =
|
||||
if nodes == nil: return
|
||||
|
|
|
|||
Loading…
Reference in a new issue