mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Use faster API to get pinned tweets
This commit is contained in:
parent
51ae076ea0
commit
27183f1a74
5 changed files with 13 additions and 3 deletions
|
|
@ -114,6 +114,10 @@ proc getTweet*(id: string; after=""): Future[Conversation] {.async.} =
|
|||
if after.len > 0:
|
||||
result.replies = await getReplies(id, after)
|
||||
|
||||
proc getStatus*(id: string): Future[Tweet] {.async.} =
|
||||
let url = status / (id & ".json") ? genParams()
|
||||
result = parseStatus(await fetch(url, Api.status))
|
||||
|
||||
proc resolve*(url: string; prefs: Prefs): Future[string] {.async.} =
|
||||
let client = newAsyncHttpClient(maxRedirects=0)
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue