Przeglądaj źródła

Match "hashflag" elements when parsing tweets

Zed 7 lat temu
rodzic
commit
8ddb913912
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/parserutils.nim

+ 1 - 1
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: