mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	Merge pull request #78 from compressed/master
change gravatar image to match URL scheme
This commit is contained in:
		@@ -76,7 +76,7 @@ func (user *User) AvatarLink() string {
 | 
				
			|||||||
	if base.Service.EnableCacheAvatar {
 | 
						if base.Service.EnableCacheAvatar {
 | 
				
			||||||
		return "/avatar/" + user.Avatar
 | 
							return "/avatar/" + user.Avatar
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return "http://1.gravatar.com/avatar/" + user.Avatar
 | 
						return "//1.gravatar.com/avatar/" + user.Avatar
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// NewGitSig generates and returns the signature of given user.
 | 
					// NewGitSig generates and returns the signature of given user.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -143,7 +143,7 @@ func AvatarLink(email string) string {
 | 
				
			|||||||
	if Service.EnableCacheAvatar {
 | 
						if Service.EnableCacheAvatar {
 | 
				
			||||||
		return "/avatar/" + EncodeMd5(email)
 | 
							return "/avatar/" + EncodeMd5(email)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return "http://1.gravatar.com/avatar/" + EncodeMd5(email)
 | 
						return "//1.gravatar.com/avatar/" + EncodeMd5(email)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Seconds-based time units
 | 
					// Seconds-based time units
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user