]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Fixes issue 7914: Reshares got crumbled
[friendica.git] / mod / item.php
index 999e7a25c67e58e00bdcf8c2be3bdaf741d62cd2..93da70e40eb5d2cda0df112d52fb7c1bdaf0ca22 100644 (file)
@@ -652,6 +652,9 @@ function item_post(App $a) {
        if ($orig_post) {
                $datarray['edit'] = true;
        } else {
+               // If this was a share, add missing data here
+               $datarray = Item::addShareDataFromOriginal($datarray);
+
                $datarray['edit'] = false;
        }
 
@@ -730,9 +733,6 @@ function item_post(App $a) {
                }
        }
 
-       // If this was a share, add missing data here
-       $datarray = Item::addShareDataFromOriginal($datarray);
-
        $post_id = Item::insert($datarray);
 
        if (!$post_id) {