diff options
author | habeascodice <habeascodice@federated.social> | 2014-10-13 03:22:01 -0700 |
---|---|---|
committer | habeascodice <habeascodice@federated.social> | 2014-10-13 03:22:01 -0700 |
commit | 0c5408e22b47880e8e657d4e10f8b39581f2a29a (patch) | |
tree | 9360fbbeca2599b0f4f94b1b48f38f3bedbcc3d3 /include/items.php | |
parent | bde8c6d39e1ccf7a53569cc652a62b5447d3243f (diff) | |
parent | a512d1a4aab35ac874ccbff89d84fdd6d5b3343f (diff) | |
download | volse-hubzilla-0c5408e22b47880e8e657d4e10f8b39581f2a29a.tar.gz volse-hubzilla-0c5408e22b47880e8e657d4e10f8b39581f2a29a.tar.bz2 volse-hubzilla-0c5408e22b47880e8e657d4e10f8b39581f2a29a.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index c4ae948b8..40343d505 100755 --- a/include/items.php +++ b/include/items.php @@ -3977,7 +3977,12 @@ function drop_item($id,$interactive = true,$stage = DROPITEM_NORMAL) { // send the notification upstream/downstream as the case may be // only send notifications to others if this is the owner's wall item. - if(($item['item_flags'] & ITEM_WALL) && ($stage != DROPITEM_PHASE2)) + // This isn't optimal. We somehow need to pass to this function whether or not + // to call the notifier, or we need to call the notifier from the calling function. + // We'll rely on the undocumented behaviour that DROPITEM_PHASE1 is (hopefully) only + // set if we know we're going to send delete notifications out to others. + + if((($item['item_flags'] & ITEM_WALL) && ($stage != DROPITEM_PHASE2)) || ($stage == DROPITEM_PHASE1)) proc_run('php','include/notifier.php','drop',$notify_id); goaway($a->get_baseurl() . '/' . $_SESSION['return_url']); |