Fixes issue 7914: Reshares got crumbled
This commit is contained in:
parent
1de81716b3
commit
23cdc9cec8
3 changed files with 6 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue