aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-15 20:52:50 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-11-15 20:52:50 -0800
commit0cb5f009b483ff570ded4570bb45023573531494 (patch)
treedcf3c06301513bf1302a34ccd66fcace719bc8df
parentc7b2ec8bbaf30a1836f3778c5d62eeb0246e97f4 (diff)
downloadvolse-hubzilla-0cb5f009b483ff570ded4570bb45023573531494.tar.gz
volse-hubzilla-0cb5f009b483ff570ded4570bb45023573531494.tar.bz2
volse-hubzilla-0cb5f009b483ff570ded4570bb45023573531494.zip
tag_deliver of an edit to an already uplinked item wasn't resetting permissions and ownership bits before starting delivery chain on the edit.
-rwxr-xr-xinclude/items.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index fd23b7e6b..43bbdda28 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2962,9 +2962,12 @@ function tag_deliver($uid, $item_id) {
if(($item['source_xchan']) && intval($item['item_uplink'])
&& intval($item['item_thread_top']) && ($item['edited'] != $item['created'])) {
+
// this is an update (edit) to a post which was already processed by us and has a second delivery chain
// Just start the second delivery chain to deliver the updated post
- proc_run('php','include/notifier.php','tgroup',$item['id']);
+ // after resetting ownership and permission bits
+
+ start_delivery_chain($u[0], $item, $item_id, 0);
return;
}