James Moger
2012-10-13 c658df9e87d65b08d5482cf04489cb0532ff83dd
src/com/gitblit/utils/ActivityUtils.java
@@ -94,7 +94,7 @@
               branches.add(objectId);
            }
            Map<ObjectId, List<RefModel>> allRefs = JGitUtils
                  .getAllRefs(repository);
                  .getAllRefs(repository, model.showRemoteBranches);
            for (String branch : branches) {
               String shortName = branch;
@@ -160,7 +160,7 @@
      }
      String emailHash = StringUtils.getMD5(email);
      String url = MessageFormat.format(
            "http://www.gravatar.com/avatar/{0}?s={1,number,0}&d=identicon", emailHash, width);
            "https://www.gravatar.com/avatar/{0}?s={1,number,0}&d=identicon", emailHash, width);
      return url;
   }
@@ -174,7 +174,7 @@
    * @throws IOException
    */
   public static GravatarProfile getGravatarProfile(String hash) throws IOException {
      String url = MessageFormat.format("http://www.gravatar.com/{0}.json", hash);
      String url = MessageFormat.format("https://www.gravatar.com/{0}.json", hash);
      // Gravatar has a complex json structure
      Type profileType = new TypeToken<Map<String, List<GravatarProfile>>>() {
      }.getType();