Merge pull request #571 from jackyzy823/fix-listmember

Fix list members not displaying
このコミットが含まれているのは:
Zed 2022-03-10 16:46:14 +01:00 committed by GitHub
コミット 2dc91f8453
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更4行の追加3行の削除

ファイルの表示

@ -25,10 +25,9 @@ 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,
@ -36,7 +35,9 @@ proc getGraphListMembers*(list: List; after=""): Future[Result[User]] {.async.}
"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.} =