diff options
author | Evan Prodromou <evan@status.net> | 2010-08-13 14:51:51 -0700 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-08-13 14:51:51 -0700 |
commit | 1dadb8efc04cbb807b2cd8b6291f7c2f64a631dc (patch) | |
tree | a35027e95a6b0900195dc3bb4ca4fef1c00b2f5a /plugins/OStatus/classes/Ostatus_profile.php | |
parent | 718317542940a8976f2c6f2a9ea09a04f2f00ca6 (diff) | |
parent | 926c77246bb168097b3f937b5cc22ee9721b83c9 (diff) |
Merge branch '0.9.x' into 1.0.x
Diffstat (limited to 'plugins/OStatus/classes/Ostatus_profile.php')
-rw-r--r-- | plugins/OStatus/classes/Ostatus_profile.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index 1fae468f6..cc4307b14 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -459,6 +459,7 @@ class Ostatus_profile extends Memcached_DataObject case ActivityObject::NOTE: case ActivityObject::STATUS: case ActivityObject::COMMENT: + case null: if ($activity->verb == ActivityVerb::POST) { $this->processPost($activity, $source); } else { @@ -501,8 +502,11 @@ class Ostatus_profile extends Memcached_DataObject } else if ($actor->id) { // We have an ActivityStreams actor with an explicit ID that doesn't match the feed owner. // This isn't what we expect from mainline OStatus person feeds! - // Group feeds go down another path, with different validation. - throw new Exception("Got an actor '{$actor->title}' ({$actor->id}) on single-user feed for {$this->uri}"); + // Group feeds go down another path, with different validation... + // Most likely this is a plain ol' blog feed of some kind which + // doesn't match our expectations. We'll take the entry, but ignore + // the <author> info. + common_log(LOG_WARNING, "Got an actor '{$actor->title}' ({$actor->id}) on single-user feed for {$this->uri}"); } else { // Plain <author> without ActivityStreams actor info. // We'll just ignore this info for now and save the update under the feed's identity. |