From 8ddb913912dbe3d7b336f634ebf47ee1f6d79a13 Mon Sep 17 00:00:00 2001 From: Zed Date: Fri, 18 Oct 2019 00:19:31 +0200 Subject: [PATCH] Match "hashflag" elements when parsing tweets --- src/parserutils.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parserutils.nim b/src/parserutils.nim index 90d9c47..0f50fc2 100644 --- a/src/parserutils.nim +++ b/src/parserutils.nim @@ -60,7 +60,7 @@ proc parseText*(text: XmlNode; skipLink=""): string = if "u-hidden" in class and result.len > 0: result.add "\n" result.add a(shortLink(url), href=url) - elif "ashtag" in class: + elif "ashtag" in class or "hashflag" in class: let hash = el.innerText() result.add a(hash, href=("/search?q=" & encodeUrl(hash))) elif "atreply" in class: