forked from forgejo/forgejo
Add disable gravatar option
This commit is contained in:
parent
3bd5fc6d6f
commit
e7d8fadb08
5 changed files with 11 additions and 2 deletions
|
@ -80,7 +80,8 @@ var (
|
|||
SessionConfig *session.Config
|
||||
SessionManager *session.Manager
|
||||
|
||||
PictureService string
|
||||
PictureService string
|
||||
DisableGravatar bool
|
||||
|
||||
EnableRedis bool
|
||||
EnableMemcache bool
|
||||
|
@ -345,7 +346,9 @@ func NewConfigContext() {
|
|||
LogInRememberDays = Cfg.MustInt("security", "LOGIN_REMEMBER_DAYS")
|
||||
CookieUserName = Cfg.MustValue("security", "COOKIE_USERNAME")
|
||||
CookieRememberName = Cfg.MustValue("security", "COOKIE_REMEMBER_NAME")
|
||||
|
||||
PictureService = Cfg.MustValue("picture", "SERVICE")
|
||||
DisableGravatar = Cfg.MustBool("picture", "DISABLE_GRAVATAR", false)
|
||||
|
||||
// Determine and create root git reposiroty path.
|
||||
homeDir, err := com.HomeDir()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue