diff options
author | Unknwon <u@gogs.io> | 2016-02-14 23:14:55 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-14 23:14:55 -0500 |
commit | 58e004f7da58eaa8c461e34cc2fbbb9727f6fa33 (patch) | |
tree | d2b16690a4d19917530fe522271f3121683eb074 /cmd/web.go | |
parent | fd92d91da3212f609ed6266fed7ac4b9f238f771 (diff) | |
download | gitea-58e004f7da58eaa8c461e34cc2fbbb9727f6fa33.tar.gz gitea-58e004f7da58eaa8c461e34cc2fbbb9727f6fa33.zip |
Remove cache avatar support and add its tests
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cmd/web.go b/cmd/web.go index f5137e25e1..5bfbdb4495 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -34,7 +34,6 @@ import ( "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/auth" - "github.com/gogits/gogs/modules/avatar" "github.com/gogits/gogs/modules/bindata" "github.com/gogits/gogs/modules/log" "github.com/gogits/gogs/modules/middleware" @@ -245,11 +244,6 @@ func runWeb(ctx *cli.Context) { }) // ***** END: User ***** - // Gravatar service. - avt := avatar.CacheServer("public/img/avatar/", "public/img/avatar_default.jpg") - os.MkdirAll("public/img/avatar/", os.ModePerm) - m.Get("/avatar/:hash", avt.ServeHTTP) - adminReq := middleware.Toggle(&middleware.ToggleOptions{SignInRequire: true, AdminRequire: true}) // ***** START: Admin ***** |