mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-22 22:35:34 +00:00
Fix list members not displaying
This commit is contained in:
parent
ecb6fe4162
commit
9b97ddc8d8
|
@ -25,10 +25,9 @@ proc getGraphList*(id: string): Future[List] {.async.} =
|
||||||
|
|
||||||
proc getGraphListMembers*(list: List; after=""): Future[Result[User]] {.async.} =
|
proc getGraphListMembers*(list: List; after=""): Future[Result[User]] {.async.} =
|
||||||
if list.id.len == 0: return
|
if list.id.len == 0: return
|
||||||
let
|
var
|
||||||
variables = %*{
|
variables = %*{
|
||||||
"listId": list.id,
|
"listId": list.id,
|
||||||
"cursor": after,
|
|
||||||
"withSuperFollowsUserFields": false,
|
"withSuperFollowsUserFields": false,
|
||||||
"withBirdwatchPivots": false,
|
"withBirdwatchPivots": false,
|
||||||
"withDownvotePerspective": false,
|
"withDownvotePerspective": false,
|
||||||
|
@ -36,7 +35,9 @@ proc getGraphListMembers*(list: List; after=""): Future[Result[User]] {.async.}
|
||||||
"withReactionsPerspective": false,
|
"withReactionsPerspective": false,
|
||||||
"withSuperFollowsTweetFields": 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)
|
result = parseGraphListMembers(await fetchRaw(url, Api.listMembers), after)
|
||||||
|
|
||||||
proc getListTimeline*(id: string; after=""): Future[Timeline] {.async.} =
|
proc getListTimeline*(id: string; after=""): Future[Timeline] {.async.} =
|
||||||
|
|
Loading…
Reference in a new issue