aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-23 01:00:29 -0700
committerFriendika <info@friendika.com>2011-08-23 01:00:29 -0700
commit561051e805e3f262ed5e8e5f712e2e514ecb90b8 (patch)
treee3d1fc3b5bb0d2a77d9f63bb51fe2442e8feae77 /include/diaspora.php
parent56ea11a5616ad5f17a81078fa8251a8c15ec7fd4 (diff)
downloadvolse-hubzilla-561051e805e3f262ed5e8e5f712e2e514ecb90b8.tar.gz
volse-hubzilla-561051e805e3f262ed5e8e5f712e2e514ecb90b8.tar.bz2
volse-hubzilla-561051e805e3f262ed5e8e5f712e2e514ecb90b8.zip
convert bbcode to markdown for diaspora (first try, will need tweaking)
Diffstat (limited to 'include/diaspora.php')
-rw-r--r--include/diaspora.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index 58dd579bc..b841c7770 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -845,9 +845,9 @@ function diaspora_send_status($item,$owner,$contact) {
$a = get_app();
$myaddr = $owner['nickname'] . '@' . substr($a->get_baseurl(), strpos($a->get_baseurl(),'://') + 3);
$theiraddr = $contact['addr'];
- require_once('include/bbcode.php');
+ require_once('include/bb2diaspora.php');
- $body = xmlify(bbcode($item['body']));
+ $body = xmlify(bb2diaspora($item['body']));
$public = (($item['private']) ? 'false' : 'true');
require_once('include/datetime.php');
@@ -898,12 +898,12 @@ function diaspora_send_followup($item,$owner,$contact) {
$like = false;
}
- $text = bbcode($item['body']);
+ $text = bb2diaspora($item['body']);
// sign it
if($like)
- $signed_text = $item['guid'] . ';' . $target_type . ';' . $positive . ';' . $myaddr;
+ $signed_text = $item['guid'] . ';' . $target_type . ';' . $parent_guid . ';' . $positive . ';' . $myaddr;
else
$signed_text = $item['guid'] . ';' . $parent_guid . ';' . $text . ';' . $myaddr;
@@ -966,7 +966,7 @@ function diaspora_send_relay($item,$owner,$contact) {
$like = false;
}
- $text = bbcode($item['body']);
+ $text = bb2diaspora($item['body']);
// sign it