summaryrefslogtreecommitdiff
path: root/modules/notification/helpers/notification_event.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/notification/helpers/notification_event.php')
-rw-r--r--modules/notification/helpers/notification_event.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php
index e7c7aac1..6336733a 100644
--- a/modules/notification/helpers/notification_event.php
+++ b/modules/notification/helpers/notification_event.php
@@ -35,10 +35,14 @@ class notification_event_Core {
}
static function comment_created($comment) {
- notification::send_comment_added($comment);
+ if ($comment->state == "published") {
+ notification::send_comment_published($comment);
+ }
}
static function comment_updated($old, $new) {
- notification::send_comment_changed($old, $new);
+ if ($new->state == "published" && $old->state != "published") {
+ notification::send_comment_published($new);
+ }
}
}