From: Roland Häder Date: Thu, 15 Sep 2022 00:33:36 +0000 (+0200) Subject: Changed: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=99a92db0aabce204ccb0c7a15f234b71120bc1b3;p=friendica.git Changed: - array initialization --- diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index ff8fc3cbea..3d35394b92 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -385,12 +385,14 @@ class OStatus } } - $header = []; - $header['uid'] = $importer['uid']; - $header['network'] = Protocol::OSTATUS; - $header['wall'] = 0; - $header['origin'] = 0; - $header['gravity'] = Item::GRAVITY_COMMENT; + // Initial header elements + $header = [ + 'uid' => $importer['uid'], + 'network' => Protocol::OSTATUS, + 'wall' => 0, + 'origin' => 0, + 'gravity' => Item::GRAVITY_COMMENT, + ]; if (!is_object($doc->firstChild) || empty($doc->firstChild->tagName)) { return false;