diff options
| author | lost+skunk <[email protected]> | 2024-09-23 09:38:32 +0300 |
|---|---|---|
| committer | lost+skunk <[email protected]> | 2024-09-23 09:38:32 +0300 |
| commit | 191984b31ef228c4077904a2831a2af593352670 (patch) | |
| tree | 33d8dd464d525ce2ad8c92a749436f1c12442800 /app/cache.go | |
| parent | c39399403e031a8c1ad53969770e4261d2c9e7aa (diff) | |
| download | skunky-art-1.3.2.tar.gz skunky-art-1.3.2.tar.bz2 skunky-art-1.3.2.zip | |
v1.3.2v1.3.2
Diffstat (limited to 'app/cache.go')
| -rw-r--r-- | app/cache.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/cache.go b/app/cache.go index 975fa0a..f9225be 100644 --- a/app/cache.go +++ b/app/cache.go @@ -27,10 +27,10 @@ func (s skunkyart) DownloadAndSendMedia(subdomain, path string) { url.WriteString(".wixmp.com/") url.WriteString(path) if t := s.Args.Get("token"); t != "" { - url.WriteString("?token=") - url.WriteString(t) + url.WriteString("?token=") + url.WriteString(t) } - + var response []byte switch { @@ -127,7 +127,7 @@ func InitCacheSystem() { try(os.RemoveAll(fileName)) } } - + if c.MaxSize != 0 && fileInfo.Size() > c.MaxSize { try(os.RemoveAll(fileName)) } |
