Match "hashflag" elements when parsing tweets
This commit is contained in:
parent
089cea0042
commit
8ddb913912
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue