summaryrefslogtreecommitdiff
path: root/classes/Notice.php
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 /classes/Notice.php
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 'classes/Notice.php')
-rw-r--r--classes/Notice.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index fbfeb9489..ff00f2a94 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -197,7 +197,10 @@ class Notice extends Memcached_DataObject
$notice->saveTags();
$notice->saveGroups();
- $notice->addToInboxes();
+ if (!common_config('queues', 'enabled')) {
+ $notice->addToInboxes();
+ }
+
$notice->query('COMMIT');
Event::handle('EndNoticeSave', array($notice));