aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-06-17 19:49:05 +0200
committerMichael Vogel <icarus@dabo.de>2012-06-17 19:49:05 +0200
commit3968e77f9e15c149d8cafa1dac37411777bd58bd (patch)
tree860447e502067a1204d87be4955b63f2eac69e39 /include/diaspora.php
parent7c2d27e2750dc0b6cc7448f8e85b25a3c9b09687 (diff)
downloadvolse-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-xinclude/diaspora.php8
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']) {