]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/defaultprofileblock.php
define Reply::pkeyGet()
[quix0rs-gnu-social.git] / lib / defaultprofileblock.php
index 18a32a09516c1aea99e3fbb70c0962be37509b8f..b8af14ac211b00f4e1967c093cff346d26c1d881 100644 (file)
@@ -56,9 +56,20 @@ class DefaultProfileBlock extends AccountProfileBlock
         parent::__construct($out, $user->getProfile());
     }
 
-    function canEdit()
+    function avatarSize()
     {
-        return true;
+        return AVATAR_STREAM_SIZE;
+    }
+
+    function avatar()
+    {
+        $avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
+        if (empty($avatar)) {
+            $avatar = $this->profile->getAvatar(73);
+        }
+        return (!empty($avatar)) ? 
+            $avatar->displayUrl() : 
+            Avatar::defaultImage(AVATAR_STREAM_SIZE);
     }
 
     function location()