summaryrefslogtreecommitdiff
path: root/lib/distribqueuehandler.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-09-30 16:25:15 -0700
committerBrion Vibber <brion@pobox.com>2010-09-30 16:25:15 -0700
commit55a080ea4e662ae719e8956c93389f3c689bb73a (patch)
treee57af90e11f1aa70ac098a1067ef5224ca676539 /lib/distribqueuehandler.php
parent2ecbae308d0fba0ace43009f0d062301b2a86c81 (diff)
ForceGroup plugin: optionally force new users to join a particular group or set of groups on registration; and/or to force posts by members of particular groups to be posted into those groups even if not explicitly mentioned. The posting feature requires a couple quick hook additions in core.
Diffstat (limited to 'lib/distribqueuehandler.php')
-rw-r--r--lib/distribqueuehandler.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/distribqueuehandler.php b/lib/distribqueuehandler.php
index 8f4b72d5c..a7519c1d5 100644
--- a/lib/distribqueuehandler.php
+++ b/lib/distribqueuehandler.php
@@ -78,13 +78,19 @@ class DistribQueueHandler
}
try {
+ Event::handle('EndNoticeDistribute', array($notice));
+ } catch (Exception $e) {
+ $this->logit($notice, $e);
+ }
+
+ try {
Event::handle('EndNoticeSave', array($notice));
- // Enqueue for other handlers
} catch (Exception $e) {
$this->logit($notice, $e);
}
try {
+ // Enqueue for other handlers
common_enqueue_notice($notice);
} catch (Exception $e) {
$this->logit($notice, $e);