mirror of
https://github.com/zedeus/nitter.git
synced 2026-04-13 17:22:11 -04:00
Revert "Switch to using typeahead for user search"
This reverts commit a3e11e3272.
This commit is contained in:
@@ -85,10 +85,3 @@ proc parseUsers*(json: string; after=""): Result[User] =
|
||||
let raw = json.fromJson(seq[RawUser])
|
||||
for user in raw:
|
||||
result.content.add user.toUser
|
||||
|
||||
proc parseTypeahead*(json: string): Result[User] =
|
||||
result = Result[User](beginning: true)
|
||||
|
||||
let raw = json.fromJson(Typeahead)
|
||||
for user in raw.users:
|
||||
result.content.add user.toUser
|
||||
|
||||
Reference in New Issue
Block a user