mirror of
https://github.com/zedeus/nitter
synced 2026-10-26 20:53:25 +00:00
Use TweetResultByRestId for embeds
This commit is contained in:
parent
6d41157603
commit
ccde22aa0b
4 changed files with 23 additions and 4 deletions
|
|
@ -751,6 +751,10 @@ proc parseGraphTweetResult*(js: JsonNode): Tweet =
|
|||
with tweet, js{"data", "tweet_result", "result"}:
|
||||
result = parseGraphTweet(tweet)
|
||||
|
||||
proc parseTweetByRestId*(js: JsonNode): Tweet =
|
||||
with tweet, js{"data", "tweetResult", "result"}:
|
||||
result = parseGraphTweet(tweet)
|
||||
|
||||
proc parseGraphTweetResults*(js: JsonNode): seq[Tweet] =
|
||||
let results = js{"data", "tweetResult"}
|
||||
if results.kind != JArray: return
|
||||
|
|
|
|||
Loading…
Reference in a new issue