if ($orig_post) {
$datarray['edit'] = true;
} else {
+ // If this was a share, add missing data here
+ $datarray = Item::addShareDataFromOriginal($datarray);
+
$datarray['edit'] = false;
}
}
}
- // If this was a share, add missing data here
- $datarray = Item::addShareDataFromOriginal($datarray);
-
$post_id = Item::insert($datarray);
if (!$post_id) {