Skip to content

Commit

Permalink
Merge pull request zedeus#571 from jackyzy823/fix-listmember
Browse files Browse the repository at this point in the history
 Fix list members not displaying
  • Loading branch information
zedeus authored Mar 10, 2022
2 parents ecb6fe4 + 9b97ddc commit 2dc91f8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/api.nim
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,19 @@ proc getGraphList*(id: string): Future[List] {.async.} =

proc getGraphListMembers*(list: List; after=""): Future[Result[User]] {.async.} =
if list.id.len == 0: return
let
var
variables = %*{
"listId": list.id,
"cursor": after,
"withSuperFollowsUserFields": false,
"withBirdwatchPivots": false,
"withDownvotePerspective": false,
"withReactionsMetadata": false,
"withReactionsPerspective": false,
"withSuperFollowsTweetFields": false
}
url = graphListMembers ? {"variables": $variables}
if after.len > 0:
variables["cursor"] = % after
let url = graphListMembers ? {"variables": $variables}
result = parseGraphListMembers(await fetchRaw(url, Api.listMembers), after)

proc getListTimeline*(id: string; after=""): Future[Timeline] {.async.} =
Expand Down

0 comments on commit 2dc91f8

Please sign in to comment.