mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:03:40 +00:00
Changed:
- array initialization
This commit is contained in:
parent
d4b25cb3ff
commit
99a92db0aa
1 changed files with 8 additions and 6 deletions
|
@ -385,12 +385,14 @@ class OStatus
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$header = [];
|
// Initial header elements
|
||||||
$header['uid'] = $importer['uid'];
|
$header = [
|
||||||
$header['network'] = Protocol::OSTATUS;
|
'uid' => $importer['uid'],
|
||||||
$header['wall'] = 0;
|
'network' => Protocol::OSTATUS,
|
||||||
$header['origin'] = 0;
|
'wall' => 0,
|
||||||
$header['gravity'] = Item::GRAVITY_COMMENT;
|
'origin' => 0,
|
||||||
|
'gravity' => Item::GRAVITY_COMMENT,
|
||||||
|
];
|
||||||
|
|
||||||
if (!is_object($doc->firstChild) || empty($doc->firstChild->tagName)) {
|
if (!is_object($doc->firstChild) || empty($doc->firstChild->tagName)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue