diff options
author | Michael Vogel <icarus@dabo.de> | 2012-06-17 19:49:05 +0200 |
---|---|---|
committer | Michael Vogel <icarus@dabo.de> | 2012-06-17 19:49:05 +0200 |
commit | 3968e77f9e15c149d8cafa1dac37411777bd58bd (patch) | |
tree | 860447e502067a1204d87be4955b63f2eac69e39 /include/diaspora.php | |
parent | 7c2d27e2750dc0b6cc7448f8e85b25a3c9b09687 (diff) | |
download | volse-hubzilla-3968e77f9e15c149d8cafa1dac37411777bd58bd.tar.gz volse-hubzilla-3968e77f9e15c149d8cafa1dac37411777bd58bd.tar.bz2 volse-hubzilla-3968e77f9e15c149d8cafa1dac37411777bd58bd.zip |
New function to convert bbcode to markdown.
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-x | include/diaspora.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/diaspora.php b/include/diaspora.php index 2be266e8a..bd3851156 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -2060,12 +2060,12 @@ function diaspora_send_status($item,$owner,$contact,$public_batch = false) { $images[] = $detail; $body = str_replace($detail['str'],$mtch[1],$body); } - } + } */ - $body = xmlify(html_entity_decode(bb2diaspora($body))); - if(strlen($title)) - $body = xmlify('**' . html_entity_decode($title) . '**' . "\n") . $body; + $body = "[b]".html_entity_decode($title)."[/b]\n\n".$body; + + $body = xmlify(html_entity_decode(bb2diaspora($body))); if($item['attach']) { |