Fixed image errors

This commit is contained in:
Eduard Urbach 2017-11-02 22:01:11 +01:00
parent da5c900e3d
commit 3f7d297a5f
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
component ProfileHeader(viewUser *arn.User, user *arn.User, uri string)
.profile
img.profile-cover(src=viewUser.CoverImageURL(), alt="Cover image")
img.profile-cover.lazy(data-src=viewUser.CoverImageURL(), data-webp="true", alt="Cover image")
.profile-image-container.mountable.never-unmount
ProfileImage(viewUser)

View File

@ -2,5 +2,6 @@ package utils
// EmptyImage returns the smallest possible 1x1 pixel image encoded in Base64.
func EmptyImage() string {
return "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
return ""
// return "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
}