summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go6
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 *****