aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-10 19:01:24 -0800
committerfriendica <info@friendica.com>2014-01-10 19:01:24 -0800
commited9a72ecbe95dcb9077ddd49393b5424cfe92910 (patch)
tree35c6714ea55d76bec67015d7d6f6ce3df5d3a691 /mod/item.php
parent74e099b135666970ea102843a01e6950a7534acf (diff)
downloadvolse-hubzilla-ed9a72ecbe95dcb9077ddd49393b5424cfe92910.tar.gz
volse-hubzilla-ed9a72ecbe95dcb9077ddd49393b5424cfe92910.tar.bz2
volse-hubzilla-ed9a72ecbe95dcb9077ddd49393b5424cfe92910.zip
preserve mid on edits
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index 915bed706..23fce2fd7 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -276,6 +276,9 @@ function item_post(&$a) {
$item_restrict = $orig_post['item_restrict'];
$postopts = $orig_post['postopts'];
$created = $orig_post['created'];
+ $mid = $orig_post['mid'];
+ $parent_mid = $orig_post['parent_mid'];
+ $plink = $orig_post['plink'];
}
else {
@@ -592,9 +595,13 @@ function item_post(&$a) {
$notify_type = (($parent) ? 'comment-new' : 'wall-new' );
- $mid = (($message_id) ? $message_id : item_message_id());
+ if(! $mid) {
+ $mid = (($message_id) ? $message_id : item_message_id());
+ }
+ if(! $parent_mid) {
+ $parent_mid = $mid;
+ }
- $parent_mid = $mid;
if($parent_item)
$parent_mid = $parent_item['mid'];