fixed build errors

This commit is contained in:
PrivacyDev 2023-07-21 18:56:13 -04:00
parent b2cc63cd99
commit 41787a9451
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ proc getGraphListMembers*(list: List; after=""): Future[Result[User]] {.async.}
let url = graphListMembers ? {"variables": $variables, "features": gqlFeatures}
result = parseGraphListMembers(await fetchRaw(url, Api.listMembers), after)
proc getFavorites*(id: string; cfg: Config; after=""): Future[Timeline] {.async.} =
proc getFavorites*(id: string; cfg: Config; after=""): Future[Profile] {.async.} =
if id.len == 0: return
let
ps = genParams({"userId": id}, after)

View file

@ -57,7 +57,7 @@ proc fetchProfile*(after: string; query: Query; cfg: Config; skipRail=false;
of posts: await getTimeline(userId, after)
of replies: await getGraphUserTweets(userId, TimelineKind.replies, after)
of media: await getGraphUserTweets(userId, TimelineKind.media, after)
of favorites: Profile(tweets: await getFavorites(userId, cfg, after))
of favorites: await getFavorites(userId, cfg, after)
else: Profile(tweets: await getTweetSearch(query, after))
result.user = await user