mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 03:26:30 +00:00
Filter "referer" param from path to avoid nesting
This commit is contained in:
parent
560623b402
commit
f801d7f79c
1 changed files with 1 additions and 1 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue