]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix reference. Look at the first ActivityObject in the list.
authorZach Copley <zach@status.net>
Tue, 23 Mar 2010 04:48:21 +0000 (21:48 -0700)
committerZach Copley <zach@status.net>
Tue, 23 Mar 2010 04:48:21 +0000 (21:48 -0700)
plugins/OStatus/classes/Ostatus_profile.php

index df937643bf89c603be4e53d870de6d7aff79fd7a..c7e3b05096863b8028c540ff51945697b0ff6e5d 100644 (file)
@@ -442,7 +442,8 @@ class Ostatus_profile extends Memcached_DataObject
     {
         $activity = new Activity($entry, $feed);
 
-        switch ($activity->object->type) {
+        // @todo process all activity objects
+        switch ($activity->objects[0]->type) {
         case ActivityObject::ARTICLE:
         case ActivityObject::BLOGENTRY:
         case ActivityObject::NOTE: