Explorar o código

Filter "referer" param from path to avoid nesting

Zed %!s(int64=7) %!d(string=hai) anos
pai
achega
f801d7f79c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/utils.nim

+ 1 - 1
src/utils.nim

@@ -41,7 +41,7 @@ proc cleanFilename*(filename: string): string =
   filename.replace(reg, "_")
 
 proc filterParams*(params: Table): seq[(string, string)] =
-  let filter = ["name", "id", "list"]
+  let filter = ["name", "id", "list", "referer"]
   toSeq(params.pairs()).filterIt(it[0] notin filter and it[1].len > 0)
 
 proc isTwitterUrl*(url: string): bool =