diff --git a/modules/heartbeat_comments/heartbeat_comments.module b/modules/heartbeat_comments/heartbeat_comments.module index 9c2c5bc..aa9d378 100644 --- a/modules/heartbeat_comments/heartbeat_comments.module +++ b/modules/heartbeat_comments/heartbeat_comments.module @@ -547,10 +547,9 @@ function heartbeat_comments_load_js() { if (isset($_POST['nid'])) { $nid = $_POST['nid']; $node = node_load($nid); + $node_comment=1; } - $node_comment = isset($_POST['activitycomments_node']) ? $_POST['activitycomments_node']: 0; - $node_comment = (int) ($node_comment && $nid); $reactions = heartbeat_get_reactions($uaid, $node_comment, $node, TRUE); @@ -1011,4 +1010,4 @@ function _heartbeat_comments_delete($hcid) { cache_clear_all('heartbeat:comments:'. $row->uaid. ':0', 'cache'); } -} \ No newline at end of file +}