]> git.mxchange.org Git - friendica.git/commitdiff
add title to D* posts
authorfriendica <info@friendica.com>
Mon, 2 Apr 2012 02:16:13 +0000 (19:16 -0700)
committerfriendica <info@friendica.com>
Mon, 2 Apr 2012 02:16:13 +0000 (19:16 -0700)
include/diaspora.php

index 104ccadf2ec51a378d3627264bd21184eafd0489..04238f17ce9d3ae0862db36b58cf1fb079594575 100755 (executable)
@@ -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) {