From: friendica Date: Mon, 2 Apr 2012 02:16:13 +0000 (-0700) Subject: add title to D* posts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d35f0d54a52801dd9a17d4e44c294e4c9168de3;p=friendica.git add title to D* posts --- diff --git a/include/diaspora.php b/include/diaspora.php index 104ccadf2e..04238f17ce 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -1920,6 +1920,7 @@ function diaspora_send_status($item,$owner,$contact,$public_batch = false) { $images = array(); + $title = $item['title']; $body = $item['body']; /* @@ -1944,9 +1945,12 @@ function diaspora_send_status($item,$owner,$contact,$public_batch = false) { } } */ - $body = xmlify(html_entity_decode(bb2diaspora($body))); + if(strlen($title)) + $body = xmlify('**' . html_entity_decode($title) . '**' . "\n") . $body; + + if($item['attach']) { $cnt = preg_match_all('/href=\"(.*?)\"(.*?)title=\"(.*?)\"/ism',$item['attach'],$matches,PREG_SET_ORDER); if(cnt) {