+ if (!empty($child['author'])) {
+ $actor = $child['author'];
+ } elseif (!empty($object['actor'])) {
+ $actor = $object['actor'];
+ } elseif (!empty($object['attributedTo'])) {
+ $actor = $object['attributedTo'];
+ } else {
+ // Shouldn't happen
+ $actor = '';
+ }
+
+ if (!empty($object['published'])) {
+ $published = $object['published'];
+ } elseif (!empty($child['published'])) {
+ $published = $child['published'];
+ } else {
+ $published = DateTimeFormat::utcNow();
+ }
+