do not ask libravatar for anonymous commits
[phorkie.git] / src / phorkie / Repository / Commit.php
index ce00235590c4fd22d0e6cf0b0060fbdc777fd6ab..031d95ef743f9961a3c4083365240f292c79a9d2 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';