Part of #35: show paste owner
[phorkie.git] / src / phorkie / Repository / Commit.php
index 1ac8cc5cce40788a526446f40578ecf9b51112cd..1afc151af68b5105b3c517c12d045d2145f1f7b4 100644 (file)
@@ -16,18 +16,8 @@ class Repository_Commit
 
     public function getIconUrl()
     {
-        if ($this->committerEmail == 'anonymous@phorkie') {
-            return '/phorkie/anonymous.png';
-        }
-
-        $s = new \Services_Libravatar();
-        return $s->url(
-            $this->committerEmail,
-            array(
-                'size'    => 32,
-                'default' => Tools::fullUrl('/phorkie/anonymous.png')
-            )
-        );
+        $hh = new HtmlHelper();
+        return $hh->getIconUrl($this->committerEmail);
     }
 
     /**