From f801d7f79cfa0969b47bc7b55a97bf9b0d4d632e Mon Sep 17 00:00:00 2001 From: Zed Date: Tue, 8 Oct 2019 13:13:53 +0200 Subject: [PATCH] Filter "referer" param from path to avoid nesting --- src/utils.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.nim b/src/utils.nim index d49752b..1bfc904 100644 --- a/src/utils.nim +++ b/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 =