Skip to content

Instantly share code, notes, and snippets.

@SupermanScott
Created May 24, 2010 23:37
Show Gist options
  • Save SupermanScott/412567 to your computer and use it in GitHub Desktop.
Save SupermanScott/412567 to your computer and use it in GitHub Desktop.
diff --git a/html/sites/all/modules/contrib/notifications/notifications_content/notifications_content.module b/html/sites/all/modules/contrib/notifications/notifications_content
index de05eb9..e822396 100644
--- a/html/sites/all/modules/contrib/notifications/notifications_content/notifications_content.module
+++ b/html/sites/all/modules/contrib/notifications/notifications_content/notifications_content.module
@@ -727,7 +727,7 @@ function notifications_content_comment($comment, $op) {
// $comment can be an object or an array.
$comment = (object)$comment;
- if ($op == 'publish' && empty($comment->notifications_content_disable) && notifications_event_enabled('node-comment') &&
+ if ($op == 'insert' && empty($comment->notifications_content_disable) && notifications_event_enabled('node-comment') &&
(!isset($comment->notifications_comment_status) || !empty($comment->notifications_comment_status)) ) {
// Check that the node is published and comment notifications are enabled for this node type
$node = node_load($comment->nid);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment