このコミットが含まれているのは:
守矢諏訪子 2023-05-31 14:46:22 +09:00
コミット 6d36195756
1個のファイルの変更5行の追加1行の削除

ファイルの表示

@ -33,7 +33,7 @@ proc parseGraphUser(js: JsonNode): User =
result = parseUser(user{"legacy"})
if "is_blue_verified" in user:
result.verified = true
result.verified = user{"is_blue_verified"}.getBool()
proc parseGraphList*(js: JsonNode): List =
if js.isNull: return
@ -490,6 +490,10 @@ proc parseGraphTimeline*(js: JsonNode; root: string; after=""): Timeline =
if not tweet.available:
tweet.id = parseBiggestInt(entryId.getId())
result.content.add tweet
elif entryId.startsWith("profile-conversation") or entryId.startsWith("homeConversation"):
let (thread, self) = parseGraphThread(e)
for tweet in thread.content:
result.content.add tweet
elif entryId.startsWith("cursor-bottom"):
result.bottom = e{"content", "value"}.getStr