fixed empty tweet author headers

This commit is contained in:
PrivacyDev 2023-07-13 23:22:02 -04:00
parent 8bcab11109
commit f15a72e89d

View file

@ -29,7 +29,11 @@ proc parseUser(js: JsonNode; id=""): User =
result.expandUserEntities(js) result.expandUserEntities(js)
proc parseGraphUser(js: JsonNode): User = proc parseGraphUser(js: JsonNode): User =
let user = ? js{"user_results", "result"} var user: JsonNode
if "user_result" in js:
user = ? js{"user_result", "result"}
else:
user = ? js{"user_results", "result"}
result = parseUser(user{"legacy"}) result = parseUser(user{"legacy"})
if "is_blue_verified" in user: if "is_blue_verified" in user: