add title
authorFriendika <info@friendika.com>
Thu, 8 Sep 2011 04:33:54 +0000 (21:33 -0700)
committerFriendika <info@friendika.com>
Thu, 8 Sep 2011 04:33:54 +0000 (21:33 -0700)
wppost.tgz
wppost/wppost.php

index d18ed64..d79d411 100644 (file)
Binary files a/wppost.tgz and b/wppost.tgz differ
index 479ad6f..9aac6c3 100644 (file)
@@ -136,7 +136,10 @@ function wppost_send(&$a,&$b) {
        if($wp_username && $wp_password && $wp_blog && $wp_post && $wp_enable) {
 
                require_once('include/bbcode.php');
-               $post = xmlify(bbcode($b['body']));
+
+               $post = (($b['title']) ? '<title>' . $b['title'] . '</title>' : '');
+               $post .= bbcode($b['body']);
+                       $post = xmlify($post);
 
                $xml = <<< EOT