Przeglądaj źródła

Fix hashtag linkifying

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

+ 1 - 1
src/formatters.nim

@@ -44,7 +44,7 @@ proc reEmailToLink*(m: RegexMatch; s: string): string =
 proc reHashtagToLink*(m: RegexMatch; s: string): string =
   result = if m.group(0).len > 0: s[m.group(0)[0]] else: ""
   let hash = s[m.group(1)[0]]
-  let link = toLink("/search?text=" & encodeUrl(hash), hash)
+  let link = toLink("/search?q=" & encodeUrl(hash), hash)
   if hash.any(isAlphaAscii):
     result &= link
   else: