Merge remote-tracking branch 'upstream/develop' into 1509-diaspora-import
This commit is contained in:
commit
d20dbedddd
7 changed files with 109 additions and 10 deletions
|
@ -295,7 +295,7 @@ function notifier_run(&$argv, &$argc){
|
|||
$relay_to_owner = false;
|
||||
|
||||
if($relay_to_owner) {
|
||||
logger('notifier: followup', LOGGER_DEBUG);
|
||||
logger('notifier: followup '.$target_item["guid"], LOGGER_DEBUG);
|
||||
// local followup to remote post
|
||||
$followup = true;
|
||||
$public_message = false; // not public
|
||||
|
@ -331,6 +331,8 @@ function notifier_run(&$argv, &$argc){
|
|||
} else {
|
||||
$followup = false;
|
||||
|
||||
logger('Distributing directly '.$target_item["guid"], LOGGER_DEBUG);
|
||||
|
||||
// don't send deletions onward for other people's stuff
|
||||
|
||||
if($target_item['deleted'] && (! intval($target_item['wall']))) {
|
||||
|
@ -378,7 +380,7 @@ function notifier_run(&$argv, &$argc){
|
|||
}
|
||||
|
||||
if (count($url_recipients))
|
||||
logger('notifier: url_recipients ' . print_r($url_recipients,true));
|
||||
logger('notifier: '.$target_item["guid"].' url_recipients ' . print_r($url_recipients,true));
|
||||
|
||||
$conversants = array_unique($conversants);
|
||||
|
||||
|
@ -394,6 +396,8 @@ function notifier_run(&$argv, &$argc){
|
|||
// We have not only to look at the parent, since it could be a Friendica thread.
|
||||
if (($thr_parent AND ($thr_parent[0]['network'] == NETWORK_OSTATUS)) OR ($parent['network'] == NETWORK_OSTATUS)) {
|
||||
|
||||
logger('Some parent is OStatus for '.$target_item["guid"], LOGGER_DEBUG);
|
||||
|
||||
// Send a salmon notification to every person we mentioned in the post
|
||||
$arr = explode(',',$target_item['tag']);
|
||||
foreach($arr as $x) {
|
||||
|
@ -650,7 +654,7 @@ function notifier_run(&$argv, &$argc){
|
|||
if($contact['self'])
|
||||
continue;
|
||||
|
||||
logger("Deliver to ".$contact['url'], LOGGER_DEBUG);
|
||||
logger("Deliver ".$target_item["guid"]." to ".$contact['url'], LOGGER_DEBUG);
|
||||
|
||||
// potentially more than one recipient. Start a new process and space them out a bit.
|
||||
// we will deliver single recipient types of message and email recipients here.
|
||||
|
|
|
@ -1259,8 +1259,12 @@ function poco_discover($complete = false) {
|
|||
|
||||
$no_of_queries = 5;
|
||||
|
||||
$last_update = date("c", time() - (60 * 60 * 6)); // 24
|
||||
$last_update = date("c", time() - (60 * 60 * 24)); // 24
|
||||
$requery_days = intval(get_config("system", "poco_requery_days"));
|
||||
|
||||
if ($requery_days == 0)
|
||||
$requery_days = 7;
|
||||
|
||||
$last_update = date("c", time() - (60 * 60 * 24 * $requery_days));
|
||||
|
||||
$r = q("SELECT `poco`, `nurl`, `url`, `network` FROM `gserver` WHERE `last_contact` >= `last_failure` AND `poco` != '' AND `last_poco_query` < '%s' ORDER BY RAND()", dbesc($last_update));
|
||||
if ($r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue