aboutsummaryrefslogtreecommitdiffstats
path: root/include/notifier.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-04 05:07:25 -0700
committerFriendika <info@friendika.com>2011-09-04 05:07:25 -0700
commit260d652168bae3716f843f445ae696b59edf4db3 (patch)
tree24b2eccf4e4f09665ba26d0289f0fd7920f550ec /include/notifier.php
parent1d01b3a088aaaaf47844544b76b55f76f7f31182 (diff)
downloadvolse-hubzilla-260d652168bae3716f843f445ae696b59edf4db3.tar.gz
volse-hubzilla-260d652168bae3716f843f445ae696b59edf4db3.tar.bz2
volse-hubzilla-260d652168bae3716f843f445ae696b59edf4db3.zip
scrape_url - use feed url if no name can be found
Diffstat (limited to 'include/notifier.php')
-rw-r--r--include/notifier.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/include/notifier.php b/include/notifier.php
index 0bb82b7bf..6ac882c19 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -2,6 +2,20 @@
require_once("boot.php");
+/*
+ * This file was at one time responsible for doing all deliveries, but this caused
+ * big problems on shared hosting systems, where the process might get killed by the
+ * hosting provider and nothing would get delivered.
+ * It now only delivers one message under certain cases, and invokes a queued
+ * delivery mechanism (include/deliver.php) to deliver individual contacts at
+ * controlled intervals.
+ * This has a much better chance of surviving random processes getting killed
+ * by the hosting provider.
+ * A lot of this code is duplicated in include/deliver.php until we have time to go back
+ * and re-structure the delivery procedure based on the obstacles that have been thrown at
+ * us by hosting providers.
+ */
+
function notifier_run($argv, $argc){
global $a, $db;
@@ -594,7 +608,8 @@ function notifier_run($argv, $argc){
diaspora_send_relay($target_item,$owner,$contact);
break;
}
- elseif($top_level) {
+ elseif(($top_level) && (! $walltowall)) {
+ // currently no workable solution for sending walltowall
diaspora_send_status($target_item,$owner,$contact);
break;
}