summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-03-22 21:48:21 -0700
committerZach Copley <zach@status.net>2010-03-22 21:48:21 -0700
commit5b0b6097e0e47c84c2e47c8a14421a58be1fac19 (patch)
tree60d794e61c37af2c9dceab8e824cb2acaf6843df /plugins
parentb8e97ac7098783f0380c7f8f61c20a100e814dc0 (diff)
Fix reference. Look at the first ActivityObject in the list.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/OStatus/classes/Ostatus_profile.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php
index df937643b..c7e3b0509 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: