Fix user search parser
This commit is contained in:
parent
a7f585feaa
commit
6695784050
|
@ -15,7 +15,9 @@ proc parseUsers*(json: string; after=""): Result[User] =
|
||||||
if raw.timeline.instructions.len == 0:
|
if raw.timeline.instructions.len == 0:
|
||||||
return
|
return
|
||||||
|
|
||||||
for e in raw.timeline.instructions[0].addEntries.entries:
|
for i in raw.timeline.instructions:
|
||||||
|
if i.addEntries.entries.len > 0:
|
||||||
|
for e in i.addEntries.entries:
|
||||||
let id = e.entryId.getId
|
let id = e.entryId.getId
|
||||||
if e.entryId.startsWith("user"):
|
if e.entryId.startsWith("user"):
|
||||||
if id in raw.globalObjects.users:
|
if id in raw.globalObjects.users:
|
||||||
|
|
Loading…
Reference in New Issue