summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-04-23 05:08:48 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-04-23 05:08:48 -0400
commitaee45ea91dcec4736d8b9befe17e030b873d9226 (patch)
tree524bfc90f30359536efc682d17715334251ae345 /lib
parent640628de2d593933e810b4785dfe38923b979713 (diff)
Add an inbox queue handler
Handle distributing a notice to multiple inboxes in a queue handler rather than in the Web action.
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 12797891c..9b6d2941a 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -889,6 +889,10 @@ function common_enqueue_notice($notice)
$transports[] = 'memcached';
}
+ if (common_config('queues', 'enabled')) {
+ $transports[] = 'inbox';
+ }
+
foreach ($transports as $transport) {
$qi = new Queue_item();
$qi->notice_id = $notice->id;