mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 03:26:30 +00:00
Fix invalid path bug
This commit is contained in:
parent
3ea926550b
commit
02e7b1dcab
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ proc cleanFilename*(filename: string): string =
|
||||||
|
|
||||||
proc filterParams*(params: Table): seq[(string, string)] =
|
proc filterParams*(params: Table): seq[(string, string)] =
|
||||||
let filter = ["name", "id"]
|
let filter = ["name", "id"]
|
||||||
toSeq(params.pairs()).filterIt(it[0] notin filter)
|
toSeq(params.pairs()).filterIt(it[0] notin filter and it[1].len > 0)
|
||||||
|
|
||||||
proc isTwitterUrl*(url: string): bool =
|
proc isTwitterUrl*(url: string): bool =
|
||||||
parseUri(url).hostname in twitterDomains
|
parseUri(url).hostname in twitterDomains
|
||||||
|
|
Loading…
Reference in a new issue