--- activity/contrib/commentactivity/commentactivity.module	2008-04-29 12:20:27.000000000 -0400
+++ /home/scott/Desktop/commentactivity.module	2008-08-06 02:20:23.000000000 -0400
@@ -113,6 +113,7 @@ function commentactivity_comment($a1, $o
           'author-uid' => $user->uid,
           'subject' => l($a1['subject'], 'node/'. $node->nid, array(), NULL, 'comment-'. $a1['cid']),
           'parent-node' => l($node->title, 'node/'. $node->nid),
+          'parent-nid' => $node->nid,
           'parent-node-author' => theme('username', $node_author),
           'parent-node-type' => $node->type,
         );
@@ -141,3 +142,11 @@ function commentactivity_comment($a1, $o
       break;
   }
 }
+
+function commentactivity_activityapi(&$activity, $op) {
+  if ($op == 'load') {
+    if ($activity['data']['module'] == 'commentactivity' && !node_access('view', node_load($activity['data']['parent-nid']))) {
+      $activity = array();
+    }
+  }
+}
