- $item['reply-to-uri'] = $item['uri'];
- }
-
- $item['published'] = defaults($object, 'published', null);
- $item['updated'] = defaults($object, 'updated', $item['published']);
-
- if (empty($item['published']) && !empty($item['updated'])) {
- $item['published'] = $item['updated'];
- }
-
- $item['uuid'] = defaults($object, 'uuid', null);
- $item['owner'] = $item['author'] = self::processElement($object, 'attributedTo', 'id');
- $item['context'] = defaults($object, 'context', null);
- $item['conversation'] = defaults($object, 'conversation', null);
- $item['sensitive'] = defaults($object, 'sensitive', null);
- $item['name'] = defaults($object, 'title', null);
- $item['name'] = defaults($object, 'name', $item['name']);
- $item['summary'] = defaults($object, 'summary', null);
- $item['content'] = defaults($object, 'content', null);
- $item['location'] = self::processElement($object, 'location', 'name', 'Place');
- $item['attachments'] = defaults($object, 'attachment', null);
- $item['tags'] = defaults($object, 'tag', null);
- $item['service'] = self::processElement($object, 'instrument', 'name', 'Service');
- $item['alternate-url'] = self::processElement($object, 'url', 'href');
- $item['receiver'] = self::getReceivers($object);
-
- // handled
- unset($object['id']);
- unset($object['inReplyTo']);
- unset($object['published']);
- unset($object['updated']);
- unset($object['uuid']);
- unset($object['attributedTo']);
- unset($object['context']);
- unset($object['conversation']);
- unset($object['sensitive']);
- unset($object['name']);
- unset($object['title']);
- unset($object['content']);
- unset($object['summary']);
- unset($object['location']);
- unset($object['attachment']);
- unset($object['tag']);
- unset($object['instrument']);
- unset($object['url']);
- unset($object['to']);
- unset($object['cc']);
- unset($object['bto']);
- unset($object['bcc']);