Browse Source

Remove unused var

pull/1747/head
Gabe Kangas 3 years ago
parent
commit
73b3ecaa44
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 4
      controllers/logo.go

4
controllers/logo.go

@ -67,10 +67,6 @@ func GetCompatibleLogo(w http.ResponseWriter, r *http.Request) { @@ -67,10 +67,6 @@ func GetCompatibleLogo(w http.ResponseWriter, r *http.Request) {
cacheTime := utils.GetCacheDurationSecondsForPath(imagePath)
writeBytesAsImage(imageBytes, contentType, w, cacheTime)
referrer := r.Referer()
if referrer == "" {
referrer = "an external site"
}
if !_hasWarnedSVGLogo {
log.Warnf("an external site requested your logo. because many social networks do not support SVGs we returned a placeholder instead. change your current logo to a png or jpeg to be most compatible with external social networking sites.")
_hasWarnedSVGLogo = true

Loading…
Cancel
Save