summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/user.go2
-rw-r--r--modules/base/tool.go2
-rw-r--r--public/img/avatar_default.jpgbin6238 -> 0 bytes
-rw-r--r--public/img/avatar_default.pngbin0 -> 4048 bytes
4 files changed, 2 insertions, 2 deletions
diff --git a/models/user.go b/models/user.go
index e6717aecdf..f4c5b669c2 100644
--- a/models/user.go
+++ b/models/user.go
@@ -240,7 +240,7 @@ func (u *User) GenerateRandomAvatar() error {
}
func (u *User) RelAvatarLink() string {
- defaultImgUrl := "/img/avatar_default.jpg"
+ defaultImgUrl := "/img/avatar_default.png"
if u.Id == -1 {
return defaultImgUrl
}
diff --git a/modules/base/tool.go b/modules/base/tool.go
index 22a90daff7..f045cb2270 100644
--- a/modules/base/tool.go
+++ b/modules/base/tool.go
@@ -207,7 +207,7 @@ func HashEmail(email string) string {
// AvatarLink returns avatar link by given email.
func AvatarLink(email string) string {
if setting.DisableGravatar || setting.OfflineMode {
- return setting.AppSubUrl + "/img/avatar_default.jpg"
+ return setting.AppSubUrl + "/img/avatar_default.png"
}
return setting.GravatarSource + HashEmail(email)
diff --git a/public/img/avatar_default.jpg b/public/img/avatar_default.jpg
deleted file mode 100644
index f97aaaf041..0000000000
--- a/public/img/avatar_default.jpg
+++ /dev/null
Binary files differ
diff --git a/public/img/avatar_default.png b/public/img/avatar_default.png
new file mode 100644
index 0000000000..fed568a12b
--- /dev/null
+++ b/public/img/avatar_default.png
Binary files differ