Add support for viewing account info

Fixes #1381
This commit is contained in:
Zed 2026-03-30 00:58:02 +02:00
commit e7e7050c6e
12 changed files with 281 additions and 6 deletions

View file

@ -66,6 +66,13 @@ proc getGraphUserById*(id: string): Future[User] {.async.} =
js = await fetchRaw(url)
result = parseGraphUser(js)
proc getAboutAccount*(username: string): Future[AccountInfo] {.async.} =
if username.len == 0: return
let
url = apiReq(graphAboutAccount, """{"screenName":"$1"}""" % username)
js = await fetch(url)
result = parseAboutAccount(js)
proc getGraphUserTweets*(id: string; kind: TimelineKind; after=""): Future[Profile] {.async.} =
if id.len == 0: return
let