]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/avatarlink.php
Misses this file to merge. I like the comments.
[quix0rs-gnu-social.git] / lib / avatarlink.php
index 7d4256d6e10ab4979e741e274c9ac3ef4827d66b..6e3f050960a7f054520c442bd04fc7a6d6aaea8f 100644 (file)
@@ -58,11 +58,8 @@ class AvatarLink
         }
     }
 
-    static function fromAvatar($avatar)
+    static function fromAvatar(Avatar $avatar)
     {
-        if (empty($avatar)) {
-            return null;
-        }
         $alink = new AvatarLink();
         $alink->type   = $avatar->mediatype;
         $alink->height = $avatar->height;