mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 03:26:30 +00:00
parent
8a6978cf74
commit
326776fde7
1 changed files with 2 additions and 1 deletions
|
@ -51,6 +51,7 @@ proc getReplyQuery*(name: string): Query =
|
|||
proc genQueryParam*(query: Query): string =
|
||||
var filters: seq[string]
|
||||
var param: string
|
||||
let userSearch = query.fromUser.len > 0
|
||||
|
||||
if query.kind == users:
|
||||
return query.text
|
||||
|
@ -71,7 +72,7 @@ proc genQueryParam*(query: Query): string =
|
|||
for f in query.filters:
|
||||
filters.add "filter:" & f
|
||||
for e in query.excludes:
|
||||
if rewriteReplies and e == "replies": continue
|
||||
if userSearch and rewriteReplies and e == "replies": continue
|
||||
filters.add "-filter:" & e
|
||||
for i in query.includes:
|
||||
filters.add "include:" & i
|
||||
|
|
Loading…
Reference in a new issue