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
|
|
@ -230,6 +230,13 @@ proc getGraphTweetResult*(id: string): Future[Tweet] {.async.} =
|
|||
js = await fetch(url)
|
||||
result = parseGraphTweetResult(js)
|
||||
|
||||
proc getTweetByRestId*(id: string): Future[Tweet] {.async.} =
|
||||
if id.len == 0: return
|
||||
let
|
||||
url = apiReq(graphTweetResultByRestId, tweetByRestIdVars % id, articleFieldToggles)
|
||||
js = await fetch(url)
|
||||
result = parseTweetByRestId(js)
|
||||
|
||||
proc getGraphTweet(id: string; after=""; mode = Relevance): Future[Conversation] {.async.} =
|
||||
if id.len == 0: return
|
||||
let
|
||||
|
|
|
|||
Loading…
Reference in a new issue