From: Zach Copley Date: Tue, 23 Mar 2010 04:48:21 +0000 (-0700) Subject: Fix reference. Look at the first ActivityObject in the list. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5b0b6097e0e47c84c2e47c8a14421a58be1fac19;p=quix0rs-gnu-social.git Fix reference. Look at the first ActivityObject in the list. --- diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index df937643bf..c7e3b05096 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -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: