mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 00:33:40 +00:00
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