+ // XXX: a bit of a hack... Since JSON isn't namespaced we probably
+ // shouldn't be using 'statusnet:notice_info', but this will work
+ // for the moment.
+
+ foreach ($this->extra as $e) {
+ list($objectName, $props, $txt) = $e;
+ if (!empty($objectName)) {
+ $parts = explode(":", $objectName);
+ if (count($parts) == 2 && $parts[0] == "statusnet") {
+ if (!array_key_exists('status_net', $activity)) {
+ $activity['status_net'] = array();
+ }
+ $activity['status_net'][$parts[1]] = $props;
+ } else {
+ $activity[$objectName] = $props;
+ }
+ }
+ }