Index: modules/blogapi/blogapi.module =================================================================== RCS file: /cvs/drupal/drupal/modules/blogapi/blogapi.module,v retrieving revision 1.95 diff -u -Ffunction -r1.95 blogapi.module --- modules/blogapi/blogapi.module 31 Aug 2006 20:22:34 -0000 1.95 +++ modules/blogapi/blogapi.module 4 Sep 2006 22:17:39 -0000 @@ -328,7 +328,7 @@ function blogapi_blogger_get_recent_post $type = _blogapi_blogid($blogid); if ($bodies) { - $result = db_query_range("SELECT n.nid, n.title, r.body, n.created, u.name FROM {node} n, {node_revisions} r, {users} u WHERE n.uid = u.uid AND n.vid = r.vid AND n.type = '%s' AND n.uid = %d ORDER BY n.created DESC", $type, $user->uid, 0, $number_of_posts); + $result = db_query_range("SELECT n.nid, n.title, r.body, r.format, n.comment, n.created, u.name FROM {node} n, {node_revisions} r, {users} u WHERE n.uid = u.uid AND n.vid = r.vid AND n.type = '%s' AND n.uid = %d ORDER BY n.created DESC", $type, $user->uid, 0, $number_of_posts); } else { $result = db_query_range("SELECT n.nid, n.title, n.created, u.name FROM {node} n, {users} u WHERE n.uid = u.uid AND n.type = '%s' AND n.uid = %d ORDER BY n.created DESC", $type, $user->uid, 0, $number_of_posts); @@ -681,18 +681,17 @@ function _blogapi_get_post($node, $bodie 'link' => url('node/'.$node->nid, NULL, NULL, TRUE), 'permaLink' => url('node/'.$node->nid, NULL, NULL, TRUE), ); - if ($bodies) { - if ($node->comment = 1) { + if ($bodies) { + if ($node->comment == 1) { $comment = 2; } - if ($node->comment = 2) { + else if ($node->comment == 2) { $comment = 1; } - $xmlrpcval['content'] = "$node->title$node->body"; $xmlrpcval['description'] = $node->body; // Add MT specific fields - $xmlrpcval['mt_allow_comments'] = $comment; + $xmlrpcval['mt_allow_comments'] = (int) $comment; $xmlrpcval['mt_convert_breaks'] = $node->format; }