ignore comments in twtxt feeds

This commit is contained in:
Christine Dodrill 2016-02-08 18:37:52 -08:00
parent db7ecdbbfe
commit f256c35d4e
1 changed files with 1 additions and 1 deletions

View File

@ -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