mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Cache profiles
This commit is contained in:
parent
63d7528b8f
commit
6103db6893
8 changed files with 81 additions and 103 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import asyncdispatch, httpclient, times, strutils, hashes, random, uri
|
||||
import jester, regex
|
||||
|
||||
import api, utils, types
|
||||
import api, utils, types, cache
|
||||
import views/[user, general, conversation]
|
||||
|
||||
proc showTimeline(name: string; num=""): Future[string] {.async.} =
|
||||
let
|
||||
username = name.strip(chars={'/'})
|
||||
profileFut = getProfile(username)
|
||||
profileFut = getCachedProfile(username)
|
||||
tweetsFut = getTimeline(username, after=num)
|
||||
|
||||
let profile = await profileFut
|
||||
|
|
|
|||
Loading…
Reference in a new issue