From b0166ae14a9fb085cbfe7a7c6a1207703930da84 Mon Sep 17 00:00:00 2001
From: Jim Rodovich <git@dzhim.com>
Date: Sat, 10 Oct 2009 09:59:48 -0500
Subject: [PATCH] history.js: Check that Gravitar is enabled before resolving gravitar.com

---
 html/views/history/history.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/html/views/history/history.js b/html/views/history/history.js
index 6cd7540..5fd6631 100644
--- a/html/views/history/history.js
+++ b/html/views/history/history.js
@@ -122,14 +122,14 @@ var gistie = function() {
 }
 
 var setGravatar = function(email, image) {
-	if (Controller && !Controller.isReachable_("www.gravatar.com"))
-		return;
-
 	if(Controller && !Controller.isFeatureEnabled_("gravatar")) {
 		image.src = "";
 		return;
 	}
 
+	if (Controller && !Controller.isReachable_("www.gravatar.com"))
+		return;
+
 	if (!email) {
 		image.src = "http://www.gravatar.com/avatar/?d=wavatar&s=60";
 		return;
-- 
1.6.4.13.ge6580

