From f256c35d4eea4e3cacc8c8bf6b0c50d885affed5 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Mon, 8 Feb 2016 18:37:52 -0800 Subject: [PATCH] ignore comments in twtxt feeds --- src/twtxt.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twtxt.nim b/src/twtxt.nim index a16fd35..9dfa97c 100644 --- a/src/twtxt.nim +++ b/src/twtxt.nim @@ -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