]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Cool bug! Technically good PHP syntax
authorEvan Prodromou <evan@status.net>
Sat, 20 Feb 2010 16:17:54 +0000 (11:17 -0500)
committerEvan Prodromou <evan@status.net>
Sat, 20 Feb 2010 16:17:54 +0000 (11:17 -0500)
plugins/OStatus/classes/Ostatus_profile.php

index b14b4c9a376ccca3a38979a8acac8b9a8095dbfd..9f5c605612423cceef2e8d6ce3d339480a67c56c 100644 (file)
@@ -149,7 +149,6 @@ class Ostatus_profile extends Memcached_DataObject
     function asActivityNoun($element)
     {
         $xs = new XMLStringer(true);
-
         $avatarHref = Avatar::defaultImage(AVATAR_PROFILE_SIZE);
         $avatarType = 'image/png';
         if ($this->isGroup()) {
@@ -173,8 +172,8 @@ class Ostatus_profile extends Memcached_DataObject
             $self = $this->localProfile();
             $avatar = $self->getAvatar(AVATAR_PROFILE_SIZE);
             if ($avatar) {
-                $avatarHref = $avatar->
-                $avatarType = $avatar->mediatype;
+                  $avatarHref = $avatar->url;
+                  $avatarType = $avatar->mediatype;
             }
         }
         $xs->elementStart('activity:' . $element);
@@ -672,10 +671,10 @@ class Ostatus_profile extends Memcached_DataObject
             // Get the canonical feed URI and check it
             $discover = new FeedDiscovery();
             $feeduri = $discover->discoverFromURL($homeuri);
-    
+
             $huburi = $discover->getAtomLink('hub');
             $salmonuri = $discover->getAtomLink('salmon');
-    
+
             if (!$huburi) {
                 // We can only deal with folks with a PuSH hub
                 throw new FeedSubNoHubException();