]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Add tests for BBCode::fetchShareAttributes
[friendica.git] / mod / item.php
index 34475188ea61cb27d826722efdc6096a6cb4ff13..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);
 
@@ -672,7 +674,8 @@ function item_post(App $a) {
                        'attach' => $datarray['attach'],
                        'file' => $datarray['file'],
                        'edited' => DateTimeFormat::utcNow(),
-                       'changed' => DateTimeFormat::utcNow()];
+                       'changed' => DateTimeFormat::utcNow()
+               ];
 
                Item::update($fields, ['id' => $post_id]);
                Item::updateDisplayCache($datarray['uri-id']);