Silence some warnings

This commit is contained in:
Zed
2020-06-22 03:50:16 +02:00
parent 155909aa9f
commit bde3c3662d
9 changed files with 11 additions and 12 deletions

View File

@@ -2,7 +2,7 @@ import strutils, strformat, sequtils, uri, tables, base64
import nimcrypto, regex
var
hmacKey = "secretkey"
hmacKey {.threadvar.}: string
base64Media = false
const
@@ -51,7 +51,7 @@ proc cleanFilename*(filename: string): string =
result &= ".png"
proc filterParams*(params: Table): seq[(string, string)] =
let filter = ["name", "id", "list", "referer", "scroll"]
const filter = ["name", "id", "list", "referer", "scroll"]
toSeq(params.pairs()).filterIt(it[0] notin filter and it[1].len > 0)
proc isTwitterUrl*(uri: Uri): bool =