mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 19:46:28 +00:00
Load prefs from cookie on search page
This commit is contained in:
parent
7d655c3dd5
commit
af23cf0a7f
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ import strutils, sequtils, uri
|
||||||
import jester
|
import jester
|
||||||
|
|
||||||
import router_utils
|
import router_utils
|
||||||
import ".."/[query, types, utils, api, agents]
|
import ".."/[query, types, utils, api, agents, prefs]
|
||||||
import ../views/[general, search]
|
import ../views/[general, search]
|
||||||
|
|
||||||
export search
|
export search
|
||||||
|
@ -14,7 +14,7 @@ proc createSearchRouter*(cfg: Config) =
|
||||||
if @"text".len > 200:
|
if @"text".len > 200:
|
||||||
resp Http400, showError("Search input too long.", cfg.title)
|
resp Http400, showError("Search input too long.", cfg.title)
|
||||||
|
|
||||||
let prefs = Prefs()
|
let prefs = cookiePrefs()
|
||||||
let query = initQuery(params(request))
|
let query = initQuery(params(request))
|
||||||
|
|
||||||
case query.kind
|
case query.kind
|
||||||
|
|
Loading…
Reference in a new issue