]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Preview failed because of unknown variables
authorMichael <heluecht@pirati.ca>
Tue, 17 May 2022 03:40:38 +0000 (03:40 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 17 May 2022 03:40:38 +0000 (03:40 +0000)
mod/item.php

index 71c1568f6d6da105d11053b4951fff8e8c70ff69..adfdc4cb0375812fe4346b2a135c36097c8c4b28 100644 (file)
@@ -623,7 +623,9 @@ function item_post(App $a) {
                $datarray["author-network"] = Protocol::DFRN;
                $datarray["author-updated"] = '';
                $datarray["author-gsid"] = 0;
+               $datarray["author-uri-id"] = ItemURI::getIdByURI($datarray["author-link"]);
                $datarray["owner-updated"] = '';
+               $datarray["has-media"] = false;
 
                $o = DI::conversation()->create([array_merge($contact_record, $datarray)], 'search', false, true);