diff --git disqus.module disqus.module index e4c9c70..1023729 100644 --- disqus.module +++ disqus.module @@ -54,7 +54,7 @@ function disqus_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) { if (!$a3 && $a4) { // See if we're to display Disqus $types = variable_get('disqus_nodetypes', array()); - if (!empty($types[$node->type]) && user_access('view disqus comments')) { + if (!empty($types[$node->type]) && user_access('view disqus comments') && empty($node->comment)) { // Check which Disqus domain to use $domain = variable_get('disqus_domain', ''); if (!empty($domain)) { @@ -90,7 +90,7 @@ function disqus_link($type, $node = NULL, $teaser = FALSE) { $links = array(); if ($type == 'node' && $teaser == TRUE) { $types = variable_get('disqus_nodetypes', array()); - if (!empty($types[$node->type]) && user_access('view disqus comments')) { + if (!empty($types[$node->type]) && user_access('view disqus comments') && empty($node->comment)) { $links['disqus_comments'] = array( 'title' => t('Comments'), 'href' => "node/$node->nid",