Remove unused var
This commit is contained in:
parent
6796998124
commit
73b3ecaa44
@ -67,10 +67,6 @@ func GetCompatibleLogo(w http.ResponseWriter, r *http.Request) {
|
|||||||
cacheTime := utils.GetCacheDurationSecondsForPath(imagePath)
|
cacheTime := utils.GetCacheDurationSecondsForPath(imagePath)
|
||||||
writeBytesAsImage(imageBytes, contentType, w, cacheTime)
|
writeBytesAsImage(imageBytes, contentType, w, cacheTime)
|
||||||
|
|
||||||
referrer := r.Referer()
|
|
||||||
if referrer == "" {
|
|
||||||
referrer = "an external site"
|
|
||||||
}
|
|
||||||
if !_hasWarnedSVGLogo {
|
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.")
|
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
|
_hasWarnedSVGLogo = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user