diff --git a/disqus.module b/disqus.module index 56964f7..572d4a7 100644 --- a/disqus.module +++ b/disqus.module @@ -222,13 +222,13 @@ function disqus_node_load($nodes, $types) { // Load Disqus into the nodes. foreach ($nodes as &$node) { if (!empty($disqustypes[$node->type])) { + // Save the data to the node object. + $node->disqus = array('domain' => $domain); + // Apply the Disqus status to the node. $disqus_default_status = !empty($disqus_status[$node->type]); $node->disqus['status'] = isset($statuses[$node->nid]->status) ? (bool) $statuses[$node->nid]->status : $disqus_default_status; - // Save the data to the node object. - $node->disqus = array('domain' => $domain); - // Build the absolute URL without the alias for the disqus_url flag. $node->disqus['url'] = url("node/$node->nid", array( 'absolute' => TRUE,