use dba;
require_once 'include/dba.php';
-require_once 'include/html2plain.php';
require_once 'include/items.php';
-require_once 'include/bbcode.php';
/*
* This file was at one time responsible for doing all deliveries, but this caused
$url_recipients = [];
$normal_mode = true;
+ $recipients_relocate = [];
if ($cmd === 'mail') {
$normal_mode = false;
// fill this in with a single salmon slap if applicable
$slap = '';
+ $followup = false;
+ $recipients_followup = [];
+ $conversants = [];
+ $sql_extra = '';
if (! ($mail || $fsuggest || $relocate)) {
$slap = OStatus::salmon($target_item, $owner);
Worker::add($a->queue['priority'], 'Notifier', 'uplink', $item_id);
}
- $conversants = [];
-
foreach ($items as $item) {
$recipients[] = $item['contact-id'];
$conversants[] = $item['contact-id'];
// except for Diaspora batch jobs
// Don't deliver to folks who have already been delivered to
- if (($rr['network'] !== NETWORK_DIASPORA) && (in_array($rr['id'],$conversants))) {
+ if (($rr['network'] !== NETWORK_DIASPORA) && (in_array($rr['id'], $conversants))) {
logger('notifier: already delivered id=' . $rr['id']);
continue;
}
logger('notifier: calling hooks', LOGGER_DEBUG);
if ($normal_mode) {
- Addon::ForkHooks($a->queue['priority'], 'notifier_normal', $target_item);
- //Addon::callHooks('notifier_normal',$target_item);
+ Addon::forkHooks($a->queue['priority'], 'notifier_normal', $target_item);
}
Addon::callHooks('notifier_end',$target_item);