mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
More API refactoring
This commit is contained in:
parent
bafe5fb550
commit
bb83b6b6d3
5 changed files with 21 additions and 29 deletions
|
|
@ -17,9 +17,6 @@ proc getTweet*(username, id, after, agent: string): Future[Conversation] {.async
|
|||
|
||||
result = parseConversation(html, after)
|
||||
|
||||
let
|
||||
vidsFut = getConversationVideos(result, agent)
|
||||
pollFut = getConversationPolls(result, agent)
|
||||
cardFut = getConversationCards(result, agent)
|
||||
|
||||
await all(vidsFut, pollFut, cardFut)
|
||||
await all(getConversationVideos(result, agent),
|
||||
getConversationCards(result, agent),
|
||||
getConversationPolls(result, agent))
|
||||
|
|
|
|||
Loading…
Reference in a new issue