mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 15:19:32 +00:00
Add search button and fix unset timeline beginning
This commit is contained in:
parent
19659de410
commit
70c42dd05a
6 changed files with 11 additions and 7 deletions
|
|
@ -42,7 +42,7 @@ proc getSearch*[T](query: Query; after, agent: string): Future[Result[T]] {.asyn
|
|||
}
|
||||
|
||||
let json = await fetchJson(base / searchUrl ? params, headers)
|
||||
if json == nil: return Result[T](query: query)
|
||||
if json == nil: return Result[T](query: query, beginning: true)
|
||||
|
||||
result = getResult[T](json, query, after)
|
||||
if not json.hasKey("items_html"): return
|
||||
|
|
|
|||
Loading…
Reference in a new issue