aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/groups/start.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index d85bb6492..193b72a4e 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -943,6 +943,10 @@ function discussion_create_reply_notification($hook, $type, $message, $params) {
function discussion_reply_notifications($event, $type, $annotation) {
global $CONFIG, $NOTIFICATION_HANDLERS;
+ if ($annotation->name !== 'group_topic_post') {
+ return;
+ }
+
// Have we registered notifications for this type of entity?
$object_type = 'object';
$object_subtype = 'groupforumtopic';