Rework profile cache behavior, fix suspended cache

Fixes #480
This commit is contained in:
Zed 2022-01-16 20:32:45 +01:00
commit f3d6f53f6d
4 changed files with 20 additions and 21 deletions

View file

@ -34,7 +34,7 @@ proc getProfile*(username: string): Future[Profile] {.async.} =
let
ps = genParams({"screen_name": username})
json = await fetchRaw(userShow ? ps, Api.userShow)
result = parseUser(json)
result = parseUser(json, username)
proc getProfileById*(userId: string): Future[Profile] {.async.} =
let