diff --git a/code/dataobjects/Comment.php b/code/dataobjects/Comment.php
index <HASH>..<HASH> 100755
--- a/code/dataobjects/Comment.php
+++ b/code/dataobjects/Comment.php
@@ -394,4 +394,17 @@ class Comment extends DataObject {
 		$config->set('URI.DisableExternalResources', true);
 		return new HTMLPurifier($config);
 	}
+
+	/*
+	Calcualate the gravatar link from the email address
+	*/
+	public function Gravatar() {
+		$gravatar = '';
+		$use_gravatar = Commenting::get_config_value($this->BaseClass, 'use_gravatar');
+		if ($use_gravatar) {
+			$gravatar = "http://www.gravatar.com/avatar/" . md5( strtolower(trim($this->Email)));
+		}
+
+		return $gravatar;
+	}
 }
ENHANCEMENT: Added gravatar method to get the URL for the gravatar from the email address submitted with the comment