mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-12 11:06:30 +00:00
Fix wrong search links
This commit is contained in:
parent
7d7eb085ca
commit
53c6247d8b
2 changed files with 7 additions and 5 deletions
|
@ -26,11 +26,13 @@ proc initQuery*(pms: Table[string, string]; name=""): Query =
|
||||||
result = Query(
|
result = Query(
|
||||||
kind: parseEnum[QueryKind](@"kind", custom),
|
kind: parseEnum[QueryKind](@"kind", custom),
|
||||||
text: @"text",
|
text: @"text",
|
||||||
fromUser: @[name],
|
|
||||||
filters: validFilters.filterIt("f-" & it in pms),
|
filters: validFilters.filterIt("f-" & it in pms),
|
||||||
excludes: validFilters.filterIt("e-" & it in pms),
|
excludes: validFilters.filterIt("e-" & it in pms),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if name.len > 0:
|
||||||
|
result.fromUser = name.split(",")
|
||||||
|
|
||||||
if @"e-nativeretweets".len == 0:
|
if @"e-nativeretweets".len == 0:
|
||||||
result.includes.add "nativeretweets"
|
result.includes.add "nativeretweets"
|
||||||
|
|
||||||
|
|
|
@ -60,10 +60,10 @@ proc buttonReferer*(action, text, path: string; class=""; `method`="post"): VNod
|
||||||
|
|
||||||
proc genCheckbox*(pref, label: string; state: bool): VNode =
|
proc genCheckbox*(pref, label: string; state: bool): VNode =
|
||||||
buildHtml(label(class="pref-group checkbox-container")):
|
buildHtml(label(class="pref-group checkbox-container")):
|
||||||
text label
|
text label
|
||||||
if state: input(name=pref, `type`="checkbox", checked="")
|
if state: input(name=pref, `type`="checkbox", checked="")
|
||||||
else: input(name=pref, `type`="checkbox")
|
else: input(name=pref, `type`="checkbox")
|
||||||
span(class="checkbox")
|
span(class="checkbox")
|
||||||
|
|
||||||
proc genInput*(pref, label, state, placeholder: string; class=""): VNode =
|
proc genInput*(pref, label, state, placeholder: string; class=""): VNode =
|
||||||
let s = xmltree.escape(state)
|
let s = xmltree.escape(state)
|
||||||
|
|
Loading…
Reference in a new issue