Skip to content

Commit

Permalink
Match "hashflag" elements when parsing tweets
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Oct 17, 2019
1 parent 089cea0 commit 8ddb913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parserutils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8ddb913

Please sign in to comment.