]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Merge pull request #10228 from MrPetovan/bug/warnings
[friendica.git] / mod / item.php
index 04e7c7c39c21240ba09915f94cfaebfb5ac3dd88..71793f14dc44a6bdc389b6fd1d052d921811a18a 100644 (file)
@@ -614,7 +614,8 @@ function item_post(App $a) {
        $datarray['origin']        = $origin;
        $datarray['object']        = $object;
 
-       $datarray["uri-id"]        = ItemURI::getIdByURI($datarray["uri"]);
+       $datarray['uri-id']        = ItemURI::getIdByURI($datarray['uri']);
+       $datarray['attachments']   = $_REQUEST['attachments'] ?? [];
 
        /*
         * These fields are for the convenience of addons...