mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Support "Replying to" and "Show thread"
This commit is contained in:
parent
97166feec9
commit
a67d27e0c4
5 changed files with 83 additions and 43 deletions
|
|
@ -41,8 +41,10 @@ proc parseTweetProfile*(profile: XmlNode): Profile =
|
|||
|
||||
proc parseQuote*(quote: XmlNode): Quote =
|
||||
result = Quote(
|
||||
id: quote.attr("data-item-id"),
|
||||
text: getQuoteText(quote)
|
||||
id: quote.attr("data-item-id"),
|
||||
text: getQuoteText(quote),
|
||||
reply: parseTweetReply(quote),
|
||||
hasThread: quote.select(".self-thread-context") != nil,
|
||||
)
|
||||
|
||||
result.profile = Profile(
|
||||
|
|
@ -64,6 +66,8 @@ proc parseTweet*(node: XmlNode): Tweet =
|
|||
shortTime: getShortTime(tweet),
|
||||
profile: parseTweetProfile(tweet),
|
||||
stats: parseTweetStats(tweet),
|
||||
reply: parseTweetReply(tweet),
|
||||
hasThread: tweet.select(".self-thread-context") != nil,
|
||||
pinned: "pinned" in tweet.attr("class"),
|
||||
available: true
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue