mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Enable Libravatar by default in new installations (#3287)
Pre-existing installs still have it default to off. This is consistent with OpenID setting.
This commit is contained in:
		
				
					committed by
					
						
						Lauris BH
					
				
			
			
				
	
			
			
			
						parent
						
							87f67fd392
						
					
				
				
					commit
					6a6439c5c2
				
			@@ -1038,7 +1038,7 @@ func NewContext() {
 | 
				
			|||||||
		GravatarSource = source
 | 
							GravatarSource = source
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	DisableGravatar = sec.Key("DISABLE_GRAVATAR").MustBool()
 | 
						DisableGravatar = sec.Key("DISABLE_GRAVATAR").MustBool()
 | 
				
			||||||
	EnableFederatedAvatar = sec.Key("ENABLE_FEDERATED_AVATAR").MustBool()
 | 
						EnableFederatedAvatar = sec.Key("ENABLE_FEDERATED_AVATAR").MustBool(!InstallLock)
 | 
				
			||||||
	if OfflineMode {
 | 
						if OfflineMode {
 | 
				
			||||||
		DisableGravatar = true
 | 
							DisableGravatar = true
 | 
				
			||||||
		EnableFederatedAvatar = false
 | 
							EnableFederatedAvatar = false
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user