mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Fix invalid search link formatting
This commit is contained in:
parent
1c06a67afd
commit
dcec1eb458
5 changed files with 7 additions and 7 deletions
|
|
@ -43,9 +43,9 @@ proc createSearchRouter*(cfg: Config) =
|
|||
resp Http404, showError("Invalid search", cfg)
|
||||
|
||||
get "/hashtag/@hash":
|
||||
redirect("/search?q=" & encodeUrl("#" & @"hash"))
|
||||
redirect("/search?f=tweets&q=" & encodeUrl("#" & @"hash"))
|
||||
|
||||
get "/opensearch":
|
||||
let url = getUrlPrefix(cfg) & "/search?q="
|
||||
let url = getUrlPrefix(cfg) & "/search?f=tweets&q="
|
||||
resp Http200, {"Content-Type": "application/opensearchdescription+xml"},
|
||||
generateOpenSearchXML(cfg.title, cfg.hostname, url)
|
||||
|
|
|
|||
Loading…
Reference in a new issue