Fix user search parser (#483)

このコミットが含まれているのは:
alqeeu 2021-12-19 12:28:13 -08:00 committed by GitHub
コミット 89591b06bf
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -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]