diff options
author | friendica <info@friendica.com> | 2012-04-01 19:16:13 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-04-01 19:16:13 -0700 |
commit | 5d35f0d54a52801dd9a17d4e44c294e4c9168de3 (patch) | |
tree | 5ce33b1595a2dd7d94e43ca9d2efc7be8facc94b /include | |
parent | 07cfdba9c36d1887b2e9b53ab8054d5140a59f53 (diff) | |
download | volse-hubzilla-5d35f0d54a52801dd9a17d4e44c294e4c9168de3.tar.gz volse-hubzilla-5d35f0d54a52801dd9a17d4e44c294e4c9168de3.tar.bz2 volse-hubzilla-5d35f0d54a52801dd9a17d4e44c294e4c9168de3.zip |
add title to D* posts
Diffstat (limited to 'include')
-rwxr-xr-x | include/diaspora.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/diaspora.php b/include/diaspora.php index 104ccadf2..04238f17c 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) { |