Skip to content

Commit db40c19

Browse files
committed
Fix bug
1 parent 7a2495a commit db40c19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/setting/picture.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func newPictureService() {
5050
avatarSec.Key("PATH").MustString(
5151
sec.Key("AVATAR_UPLOAD_PATH").String())
5252

53-
Avatar.Storage = getStorage("avatar", storageType, avatarSec)
53+
Avatar.Storage = getStorage("avatars", storageType, avatarSec)
5454

5555
Avatar.MaxWidth = sec.Key("AVATAR_MAX_WIDTH").MustInt(4096)
5656
Avatar.MaxHeight = sec.Key("AVATAR_MAX_HEIGHT").MustInt(3072)
@@ -107,7 +107,7 @@ func newRepoAvatarService() {
107107
repoAvatarSec.Key("PATH").MustString(
108108
sec.Key("REPOSITORY_AVATAR_UPLOAD_PATH").String())
109109

110-
RepoAvatar.Storage = getStorage("avatar", storageType, repoAvatarSec)
110+
RepoAvatar.Storage = getStorage("repo-avatars", storageType, repoAvatarSec)
111111

112112
RepoAvatar.Fallback = sec.Key("REPOSITORY_AVATAR_FALLBACK").MustString("none")
113113
RepoAvatar.FallbackImage = sec.Key("REPOSITORY_AVATAR_FALLBACK_IMAGE").MustString("/img/repo_default.png")

0 commit comments

Comments
 (0)