1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-08 04:55:37 -05:00

Add timeline filters

Custom filter menu is still WIP
This commit is contained in:
Zed
2019-07-03 11:46:03 +02:00
parent a7249080db
commit 13a9f6cd1f
12 changed files with 248 additions and 65 deletions

View File

@@ -31,6 +31,16 @@ db("cache.db", "", "", ""):
.}: Time
type
QueryType* = enum
replies, media, custom = "search"
Query* = object
filter*: seq[string]
exclude*: seq[string]
sep*: string
fromUser*: string
queryType*: QueryType
VideoType* = enum
vmap, m3u8, mp4
@@ -106,6 +116,7 @@ type
minId*: string
maxId*: string
hasMore*: bool
query*: Option[Query]
proc contains*(thread: Thread; tweet: Tweet): bool =
thread.tweets.anyIt(it.id == tweet.id)