mirror of
https://github.com/zedeus/nitter
synced 2026-09-25 23:09:20 +00:00
parent
a68b57629a
commit
8142bab1a9
13 changed files with 103 additions and 39 deletions
|
|
@ -29,6 +29,10 @@ proc initQuery*(pms: Table[string, string]; name=""): Query =
|
|||
minLikes: validateNumber(@"min_faves")
|
||||
)
|
||||
|
||||
# articles is an internal tab kind, not a valid search filter
|
||||
if result.kind == QueryKind.articles:
|
||||
result.kind = tweets
|
||||
|
||||
if name.len > 0:
|
||||
result.fromUser = name.split(",")
|
||||
|
||||
|
|
@ -40,6 +44,12 @@ proc getMediaQuery*(name: string): Query =
|
|||
sep: "OR"
|
||||
)
|
||||
|
||||
proc getArticlesQuery*(name: string): Query =
|
||||
Query(
|
||||
kind: QueryKind.articles,
|
||||
fromUser: @[name]
|
||||
)
|
||||
|
||||
proc getReplyQuery*(name: string): Query =
|
||||
Query(
|
||||
kind: replies,
|
||||
|
|
|
|||
Loading…
Reference in a new issue