summaryrefslogtreecommitdiff
path: root/lib
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 18:05:44 -0700
commit6e58a926e3b3889d96df37c71f4aa090700041fd (patch)
tree4cbd56330be790d7f18d636988d205f449216864 /lib
parent8c85f83300fc2545f0d5e4ba767346082ebec5ba (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')
-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);