ignore comments in twtxt feeds
This commit is contained in:
parent
db7ecdbbfe
commit
f256c35d4e
|
@ -52,7 +52,7 @@ proc getTweetsFrom*(url: string, username: string): seq[Tweet] =
|
|||
let body = url.getContent(timeout=20_000)
|
||||
|
||||
for line in body.splitLines().items():
|
||||
if line.len > 0:
|
||||
if line.len > 0 and line[0] != "#":
|
||||
res.add(username.parseTweet(line))
|
||||
|
||||
return res
|
||||
|
|
Loading…
Reference in New Issue