Index: modules/blogapi.module =================================================================== RCS file: /cvs/drupal/drupal/modules/Attic/blogapi.module,v retrieving revision 1.82 diff -u -r1.82 blogapi.module --- modules/blogapi.module 26 Apr 2006 15:07:12 -0000 1.82 +++ modules/blogapi.module 9 Nov 2006 00:18:46 -0000 @@ -332,7 +332,7 @@ $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); @@ -697,17 +697,17 @@ 'permaLink' => url('node/'.$node->nid, NULL, NULL, true), ); if ($bodies) { - if ($node->comment = 1) { + 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; }