mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 12:15:37 +00:00
Fix user search parser (#483)
This commit is contained in:
parent
25191f7c40
commit
89591b06bf
|
@ -405,7 +405,7 @@ proc parseUsers*(js: JsonNode; after=""): Result[Profile] =
|
||||||
|
|
||||||
for e in instructions[0]{"addEntries", "entries"}:
|
for e in instructions[0]{"addEntries", "entries"}:
|
||||||
let entry = e{"entryId"}.getStr
|
let entry = e{"entryId"}.getStr
|
||||||
if "sq-I-u" in entry:
|
if "user-" in entry:
|
||||||
let id = entry.getId
|
let id = entry.getId
|
||||||
if id in global.users:
|
if id in global.users:
|
||||||
result.content.add global.users[id]
|
result.content.add global.users[id]
|
||||||
|
|
Loading…
Reference in a new issue