mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Reduce usage of strformat, minor perf improvement
This commit is contained in:
parent
92a6eb0339
commit
85316f8f8d
6 changed files with 37 additions and 32 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
import strutils, strformat, uri
|
||||
import strutils, uri
|
||||
|
||||
import jester
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ proc createSearchRouter*(cfg: Config) =
|
|||
resp Http404, showError("Invalid search", cfg)
|
||||
|
||||
get "/hashtag/@hash":
|
||||
redirect(&"""/search?q={encodeUrl("#" & @"hash")}""")
|
||||
redirect("/search?q=" & encodeUrl("#" & @"hash"))
|
||||
|
||||
get "/opensearch":
|
||||
let url = getUrlPrefix(cfg) & "/search?q="
|
||||
|
|
|
|||
Loading…
Reference in a new issue