Explorar el Código

fixed bug that caused everybody to be displayed as verified (#890)

PrivacyDevel hace 3 años
padre
commit
38985af6ed
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/parser.nim

+ 1 - 1
src/parser.nim

@@ -33,7 +33,7 @@ proc parseGraphUser(js: JsonNode): User =
   result = parseUser(user{"legacy"})
 
   if "is_blue_verified" in user:
-    result.verified = true
+    result.verified = user{"is_blue_verified"}.getBool()
 
 proc parseGraphList*(js: JsonNode): List =
   if js.isNull: return