? blogapi-taxonomy-wrong-params-211067.patch
Index: blogapi.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/blogapi/blogapi.module,v
retrieving revision 1.114
diff -u -p -r1.114 blogapi.module
--- blogapi.module	9 Jan 2008 09:51:34 -0000	1.114
+++ blogapi.module	17 Jan 2008 09:20:07 -0000
@@ -421,7 +421,8 @@ function blogapi_mt_get_post_categories(
     return blogapi_error($user);
   }
 
-  $terms = module_invoke('taxonomy', 'node_get_terms', $postid, 'tid');
+  $node = node_load($postid);
+  $terms = module_invoke('taxonomy', 'node_get_terms', $node, 'tid');
   $categories = array();
   foreach ($terms as $term) {
     $term_name = $term->name;
@@ -430,6 +431,7 @@ function blogapi_mt_get_post_categories(
     }
     $categories[] = array('categoryName' => $term_name, 'categoryId' => $term->tid, 'isPrimary' => TRUE);
   }
+
   return $categories;
 }
 
