forked from friendica/friendica-addons
add title
This commit is contained in:
parent
40a8b4d13f
commit
2bf19ae652
2 changed files with 4 additions and 1 deletions
BIN
wppost.tgz
BIN
wppost.tgz
Binary file not shown.
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue