mirror of
https://github.com/friendica/friendica
synced 2025-04-22 16:30:11 +00:00
AP: Fix a notice / avoid an error when fetched content hadn't been an array
This commit is contained in:
parent
da2a17495d
commit
8035bad8e2
2 changed files with 8 additions and 2 deletions
|
@ -272,7 +272,7 @@ class Processor
|
|||
$activity['cc'] = defaults($object, 'cc', []);
|
||||
$activity['actor'] = $child['author'];
|
||||
$activity['object'] = $object;
|
||||
$activity['published'] = $object['published'];
|
||||
$activity['published'] = defaults($object, 'published', $child['published']);
|
||||
$activity['type'] = 'Create';
|
||||
|
||||
$ldactivity = JsonLD::compact($activity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue