]> git.mxchange.org Git - friendica-addons.git/blobdiff - wppost/wppost.php
default title for wppost
[friendica-addons.git] / wppost / wppost.php
index 235aa823411f94f01c5a9aab2ae0fe11f36a3ca4..d0e48b73e658d62c90fef0d84d6244ae3bb06661 100644 (file)
@@ -168,9 +168,9 @@ function wppost_send(&$a,&$b) {
 
                require_once('include/bbcode.php');
 
-               $post = (($b['title']) ? '<title>' . $b['title'] . '</title>' : '');
-               $post .= bbcode($b['body']);
-                       $post = xmlify($post);
+               $title = '<title>' . (($b['title']) ? $b['title'] : t('Post from Friendica')) . '</title>';
+               $post = $title . bbcode($b['body']);
+               $post = xmlify($post);
 
                $xml = <<< EOT