Skip to content

Commit

Permalink
fixed build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PrivacyDevel committed Jul 21, 2023
1 parent b2cc63c commit 41787a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/routes/timeline.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41787a9

Please sign in to comment.