mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	fix gravatar disable bug (#22336)
This commit is contained in:
		@@ -275,7 +275,7 @@ func Init() error {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if enableFederatedAvatarSetting.GetValueBool() {
 | 
						if GravatarSourceURL != nil && enableFederatedAvatarSetting.GetValueBool() {
 | 
				
			||||||
		LibravatarService = libravatar.New()
 | 
							LibravatarService = libravatar.New()
 | 
				
			||||||
		if GravatarSourceURL.Scheme == "https" {
 | 
							if GravatarSourceURL.Scheme == "https" {
 | 
				
			||||||
			LibravatarService.SetUseHTTPS(true)
 | 
								LibravatarService.SetUseHTTPS(true)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user