Fix user search parser (#483)

This commit is contained in:
alqeeu 2021-12-19 12:28:13 -08:00 committed by GitHub
parent 25191f7c40
commit 89591b06bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ proc parseUsers*(js: JsonNode; after=""): Result[Profile] =
for e in instructions[0]{"addEntries", "entries"}:
let entry = e{"entryId"}.getStr
if "sq-I-u" in entry:
if "user-" in entry:
let id = entry.getId
if id in global.users:
result.content.add global.users[id]