do not ask libravatar for anonymous commits
[phorkie.git] / src / phorkie / Repository / Commit.php
index ce00235..031d95e 100644 (file)
@@ -16,6 +16,10 @@ class Repository_Commit
 
     public function getIconUrl()
     {
+        if ($this->committerEmail == 'anonymous@phorkie') {
+            return '/phorkie/anonymous.png';
+        }
+
         //workaround for https://pear.php.net/bugs/bug.php?id=19384
         require_once 'PEAR/Services/Libravatar.php';