aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-15 17:14:51 -0700
committerFriendika <info@friendika.com>2011-08-15 17:14:51 -0700
commit44918e27367d00d3625daaf751a05b166ecd2fc1 (patch)
treefe6789952ea48673924f2d83c6a217185c908c7c /include/diaspora.php
parent805770521eebdd0bc6ddfb2f174a76e0646557fc (diff)
downloadvolse-hubzilla-44918e27367d00d3625daaf751a05b166ecd2fc1.tar.gz
volse-hubzilla-44918e27367d00d3625daaf751a05b166ecd2fc1.tar.bz2
volse-hubzilla-44918e27367d00d3625daaf751a05b166ecd2fc1.zip
turn diaspora posts into x-www-form-urlencoded
Diffstat (limited to 'include/diaspora.php')
-rw-r--r--include/diaspora.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index 74aa32f5c..dd0debe69 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -533,12 +533,9 @@ function diaspora_share($me,$contact) {
'$recipient' => $theiraddr
));
- $slap = diaspora_msg_build($msg,$me,$contact,$me['prvkey'],$contact['pubkey']);
+ $slap = 'xml=' . urlencode(diaspora_msg_build($msg,$me,$contact,$me['prvkey'],$contact['pubkey']));
- post_url($contact['notify'],$slap, array(
- 'Content-type: application/magic-envelope+xml',
- 'Content-length: ' . strlen($slap)
- ));
+ post_url($contact['notify'],$slap);
$return_code = $a->get_curl_code();
return $return_code;
}
@@ -567,12 +564,9 @@ function diaspora_send_status($item,$owner,$contact) {
logger('diaspora_send_status: base message: ' . $msg, LOGGER_DATA);
- $slap = diaspora_msg_build($msg,$owner,$contact,$owner['uprvkey'],$contact['pubkey']);
+ $slap = 'xml=' . urlencode(diaspora_msg_build($msg,$owner,$contact,$owner['uprvkey'],$contact['pubkey']));
- post_url($contact['notify'],$slap, array(
- 'Content-type: application/magic-envelope+xml',
- 'Content-length: ' . strlen($slap)
- ));
+ post_url($contact['notify'],$slap);
$return_code = $a->get_curl_code();
logger('diaspora_send_status: returns: ' . $return_code);
return $return_code;