mirror of
https://github.com/zedeus/nitter
synced 2026-10-26 20:53:25 +00:00
parent
206622ea38
commit
0ac9bc2678
3 changed files with 29 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ proc getGraphUser*(username: string): Future[User] {.async.} =
|
|||
proc getGraphUserById*(id: string): Future[User] {.async.} =
|
||||
if id.len == 0 or id.any(c => not c.isDigit): return
|
||||
let
|
||||
url = apiReq(graphUserById, """{"rest_id": "$1"}""" % id)
|
||||
url = apiReq(graphUserById, userByRestIdVars % id)
|
||||
js = await fetchRaw(url)
|
||||
result = parseGraphUser(js)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue