1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-15 16:52:48 -05:00

Refactor Thread -> Chain to nimsuggest errors

This commit is contained in:
Zed
2019-10-08 20:47:45 +02:00
parent 5ae2e57da8
commit e6f1e55c15
5 changed files with 18 additions and 18 deletions

View File

@@ -156,15 +156,15 @@ type
photos*: seq[string]
poll*: Option[Poll]
Thread* = ref object
Chain* = ref object
content*: seq[Tweet]
more*: int
Conversation* = ref object
tweet*: Tweet
before*: Thread
after*: Thread
replies*: Result[Thread]
before*: Chain
after*: Chain
replies*: Result[Chain]
Timeline* = Result[Tweet]
@@ -177,5 +177,5 @@ type
cacheDir*: string
profileCacheTime*: int
proc contains*(thread: Thread; tweet: Tweet): bool =
proc contains*(thread: Chain; tweet: Tweet): bool =
thread.content.anyIt(it.id == tweet.id)