Commit e6dbae63 authored by pgrond's avatar pgrond Committed by greggles

Issue #1337216 by pgrond: Node notification does not work until the user saves their account

parent ed8e98a3
......@@ -468,7 +468,7 @@ function _comment_notify_mailalert($comment) {
// Send to a subscribed author if they are not the current commenter
$author = user_load($node->uid);
if (!empty($author->comment_notify_settings->node_notify) && $author->comment_notify_settings->node_notify == 1 && $user->uid != $author->uid && node_access('view', $node, $author)) {
if (((!empty($author->comment_notify_settings->node_notify) && $author->comment_notify_settings->node_notify == 1) || (comment_notify_variable_registry_get('node_notify_default_mailalert') == 1 && empty($author->comment_notify_settings->node_notify))) && $user->uid != $author->uid && node_access('view', $node, $author)) {
// Get the author's language.
$language = user_preferred_language($author);
$raw_values = array(
......@@ -734,3 +734,4 @@ function comment_notify_field_extra_fields() {
);
return $extras;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment