diff -ru vote_up_down/vote_up_down.module temp/vote_up_down/vote_up_down.module
--- vote_up_down/vote_up_down.module	2009-03-30 02:09:30.000000000 +0900
+++ temp/vote_up_down/vote_up_down.module	2009-03-30 02:05:31.000000000 +0900
@@ -278,31 +278,32 @@
 /**
  * Implementation of hook_link().
  */
-function vote_up_down_link($type, $node = NULL, $teaser = FALSE) {
+function vote_up_down_link($type, $object = NULL, $teaser = FALSE) {
+  $$type = $object;
   $links = array();
   switch ($type) {
     case 'node':
-      $node_type = in_array($node->type, variable_get('vote_up_down_node_types', array()), TRUE);
+      $node_type = in_array($$type->type, variable_get('vote_up_down_node_types', array()), TRUE);
       $style = variable_get('vote_up_down_widget_style_node', 0) == 1 ? '_alt' : '';
       if ($node_type && user_access('view up/down votes')) {
         if (variable_get('vote_up_down_reset_vote', 0) && user_access('use vote up/down')) {
-          $token = drupal_get_token("vote_up_down/$type/$node->nid/0");
+          $token = drupal_get_token("vote_up_down/$type/$$type->nid/0");
           $links['vote_up_down_reset'] = array(
             'title' => t('Reset vote'),
-            'href' => "vote_up_down/$type/$node->nid/0",
+            'href' => "vote_up_down/$type/$$type->nid/0",
             'attributes' => array('title' => t('Reset your vote.')),
             'query' => drupal_get_destination() .'&token='. $token,
           );
         }
         if ($teaser && variable_get('vote_up_down_link_node', 0) && variable_get('vote_up_down_link_node', 0) != 2 && $style != "_alt") {
           $links['vote_up_down_points'] = array(
-            'title' => theme('vote_up_down_points', $node->nid, $type),
+            'title' => theme('vote_up_down_points', $$type->nid, $type),
             'html' => TRUE,
           );
         }
         else if (!$teaser && variable_get('vote_up_down_link_node', 0) > 1 && $style != "_alt") {
           $links['vote_up_down_points'] = array(
-            'title' => theme('vote_up_down_points', $node->nid, $type),
+            'title' => theme('vote_up_down_points', $$type->nid, $type),
             'html' => TRUE,
           );
         }
@@ -310,17 +311,17 @@
       break;
     case 'comment':
       if (variable_get('vote_up_down_reset_vote', 0) && user_access('use vote up/down') && (variable_get('vote_up_down_widget_comment', 0) || variable_get('vote_up_down_link_comment', 0))) {
-        $token = drupal_get_token("vote_up_down/$type/$node->cid/0");
+        $token = drupal_get_token("vote_up_down/$type/$$type->cid/0");
         $links['vote_up_down_reset_c'] = array(
           'title' => t('Reset vote'),
-          'href' => "vote_up_down/$type/$node->cid/0",
+          'href' => "vote_up_down/$type/$$type->cid/0",
           'attributes' => array('title' => t('Reset your vote.')),
           'query' => drupal_get_destination() .'&token='. $token,
         );
       }
       if (variable_get('vote_up_down_link_comment', 0) && user_access('view up/down votes')) {
         $links['vote_up_down_points_c'] = array(
-          'title' => theme('vote_up_down_points', $node->cid, $type, NULL),
+          'title' => theme('vote_up_down_points', $$type->cid, $type, NULL),
           'html' => TRUE,
         );
       }
