fixed empty tweet author headers
This commit is contained in:
parent
8bcab11109
commit
f15a72e89d
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue