mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-22 23:15:33 +00:00
Fix replies again
This commit is contained in:
parent
312ff78628
commit
62f8edf027
|
@ -49,14 +49,16 @@ proc getReplyQuery*(name: string): Query =
|
|||
)
|
||||
|
||||
proc genQueryParam*(query: Query; rewriteReplies=true): string =
|
||||
var filters: seq[string]
|
||||
var param: string
|
||||
let rewrite =
|
||||
rewriteReplies and query.fromUser.len > 0 and query.kind != tweets
|
||||
var
|
||||
filters: seq[string]
|
||||
param: string
|
||||
|
||||
if query.kind == users:
|
||||
return query.text
|
||||
|
||||
let rewrite = rewriteReplies and query.fromUser.len > 0 and
|
||||
query.kind notin {tweets, replies}
|
||||
|
||||
for i, user in query.fromUser:
|
||||
if rewrite:
|
||||
param &= &"(from:{user}(to:{user} OR -filter:replies)) "
|
||||
|
|
Loading…
Reference in a new issue