add title to D* posts
This commit is contained in:
parent
07cfdba9c3
commit
5d35f0d54a
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue