summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 44f648ca3..04ddc9d2d 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -495,7 +495,7 @@ function comment_nodeapi_view($node, $teaser) {
);
// Append the list of comments to $node->content for node detail pages.
- if ($node->comment && (bool)menu_get_object()) {
+ if ($node->comment && (bool)menu_get_object() && $node->build_mode != NODE_BUILD_PREVIEW) {
$node->content['comments'] = array(
'#markup' => comment_render($node),
);