mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 06:15:40 +00:00
Match "hashflag" elements when parsing tweets
This commit is contained in:
parent
089cea0042
commit
8ddb913912
|
@ -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