Fixes issue 7914: Reshares got crumbled

This commit is contained in:
Michael 2019-12-07 21:05:14 +00:00
commit 23cdc9cec8
3 changed files with 6 additions and 7 deletions

View 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) {