summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/inboxqueuehandler.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/inboxqueuehandler.php b/scripts/inboxqueuehandler.php
index 73d31e854..c7aab4fe1 100755
--- a/scripts/inboxqueuehandler.php
+++ b/scripts/inboxqueuehandler.php
@@ -41,7 +41,7 @@ class InboxQueueHandler extends QueueHandler
}
function start() {
- $this->log(LOG_INFO, "INITIALIZE");
+ $this->log(LOG_INFO, "Initialize inbox queue handler");
return true;
}
@@ -49,11 +49,19 @@ class InboxQueueHandler extends QueueHandler
{
$this->log(LOG_INFO, "Distributing notice to inboxes for $notice->id");
$notice->addToInboxes();
+ $notice->saveGroups();
$notice->blowSubsCache();
+ $transports = common_post_inbox_transports();
+
+ foreach ($transports as $transport) {
+ common_enqueue_notice_transport($notice, $transport);
+ }
+
return true;
}
function finish() {
+ $this->log(LOG_INFO, "Terminating inbox queue handler");
}
}