aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-04-02 22:00:22 +0200
committerMichael Vogel <icarus@dabo.de>2012-04-02 22:00:22 +0200
commit3dc317dcc62c8e982d964bcae421a1410771d51c (patch)
tree6e63f4e263a6637656ed24dfb5c36292d442c268 /include/diaspora.php
parenta39d8d3f02e5bbd711fde71594c2c787b21ef2e9 (diff)
parent6dfd55668f39d2cfb27d468cc982471abaad5165 (diff)
downloadvolse-hubzilla-3dc317dcc62c8e982d964bcae421a1410771d51c.tar.gz
volse-hubzilla-3dc317dcc62c8e982d964bcae421a1410771d51c.tar.bz2
volse-hubzilla-3dc317dcc62c8e982d964bcae421a1410771d51c.zip
Merge commit 'upstream/master'
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-xinclude/diaspora.php6
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) {