Explorar o código

Fix hashtag linkifying

Zed %!s(int64=7) %!d(string=hai) anos
pai
achega
a9f4961547
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: