Use old user endpoint to avoid graphql rate limits

This commit is contained in:
Zed
2020-06-01 09:46:17 +02:00
parent 39863703b3
commit 74534e8fef
4 changed files with 21 additions and 1 deletions

View File

@@ -79,7 +79,7 @@ proc getCachedProfile*(username: string; fetch=true): Future[Profile] {.async.}
if prof != redisNil:
result = prof.to(Profile)
else:
result = await getGraphProfile(username)
result = await getProfile(username)
if result.id.len > 0:
await cache(result)