--- ./modules/comment.module 2004/03/16 02:36:21 1.14 +++ ./modules/comment.module 2004/03/17 18:25:52 @@ -1293,7 +1293,7 @@ return theme("box", $title, form($form, "post", url("comment/reply/". $edit["nid"]))); } -function theme_comment_view($comment, $links = "", $visible = 1) { +function theme_comment_view($comment, $links = "", $visible = 1, $mark_read = 1) { /* ** Switch to folded/unfolded view of the comment @@ -1311,7 +1311,9 @@ if ($visible) { $comment->comment = check_output($comment->comment); $output .= theme("comment", $comment, $links); - comment_tag_new($comment->cid); + if ($mark_read) { + comment_tag_new($comment->cid); + } } else { $output .= theme("comment_folded", $comment); @@ -1415,7 +1417,7 @@ return $output; } -function theme_comment($comment, $links = 0) { +function theme_comment($comment, $links = NULL, $mark_read = 1) { $output .= "
"; $output .= "
$comment->subject". ($comment->new ? " ". theme("mark") : "") ."
"; $output .= "
". $comment->moderation ."
"; @@ -1423,7 +1425,9 @@ $output .= "
". check_output($comment->comment) ."
"; $output .= "
$links
"; $output .= "
"; - comment_tag_new($comment->cid); + if ($mark_read) { + comment_tag_new($comment->cid); + } return $output; }