Fix reference. Look at the first ActivityObject in the list.

This commit is contained in:
Zach Copley 2010-03-22 21:48:21 -07:00
parent b8e97ac709
commit 5b0b6097e0

View 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: