1
0
Fork 0

first forum test

This commit is contained in:
friendica 2011-11-19 03:06:15 -08:00
commit 72dd6457b0
2 changed files with 26 additions and 15 deletions

View file

@ -218,6 +218,11 @@ function notifier_run($argv, $argc){
$relay_to_owner = true;
}
if(($cmd === 'uplink') && (intval($parent['forum_mode'])) && (! $top_level)) {
$relay_to_owner = true;
}
// until the 'origin' flag has been in use for several months
// we will just use it as a fallback test
// later we will be able to use it as the primary test of whether or not to relay.
@ -259,6 +264,13 @@ function notifier_run($argv, $argc){
$deny_people = expand_acl($parent['deny_cid']);
$deny_groups = expand_groups(expand_acl($parent['deny_gid']));
// if our parent is a forum, uplink to the origonal author causing
// a delivery fork
if(intval($parent['forum_mode']) && (! $top_level) && ($cmd !== 'uplink')) {
proc_run('php','include/notifier','uplink',$item_id);
}
$conversants = array();
foreach($items as $item) {