aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-18 16:38:48 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-18 16:38:48 -0700
commit3876cab8eac1364e7074e8da9aeb83badb3b65b3 (patch)
treecc6eb62935872a0afdc8cab55d7f45bf9ef0c45c /include
parentac824fe83e67950f9303d13d574ff00b57dd5727 (diff)
downloadvolse-hubzilla-3876cab8eac1364e7074e8da9aeb83badb3b65b3.tar.gz
volse-hubzilla-3876cab8eac1364e7074e8da9aeb83badb3b65b3.tar.bz2
volse-hubzilla-3876cab8eac1364e7074e8da9aeb83badb3b65b3.zip
sorting out the last(?) quirks in group pages.
Diffstat (limited to 'include')
-rw-r--r--include/items.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index e9277f114..87e5b46ef 100644
--- a/include/items.php
+++ b/include/items.php
@@ -552,7 +552,9 @@ function dfrn_deliver($owner,$contact,$atom,$debugging = false) {
$final_dfrn_id = '';
- if($contact['duplex'] && strlen($contact['prvkey'])) {
+
+
+ if(($contact['duplex'] && strlen($contact['prvkey'])) || ($owner['page-flags'] == PAGE_COMMUNITY)) {
openssl_private_decrypt($sent_dfrn_id,$final_dfrn_id,$contact['prvkey']);
openssl_private_decrypt($challenge,$postvars['challenge'],$contact['prvkey']);
}
@@ -567,6 +569,8 @@ function dfrn_deliver($owner,$contact,$atom,$debugging = false) {
$final_dfrn_id = substr($final_dfrn_id,2);
if($final_dfrn_id != $orig_id) {
+ if($debugging)
+ echo "Wrong ID - did not decode\n";
// did not decode properly - cannot trust this site
return 3;
}
@@ -586,8 +590,10 @@ function dfrn_deliver($owner,$contact,$atom,$debugging = false) {
$xml = post_url($contact['notify'],$postvars);
- if($debugging)
- echo $xml;
+ if($debugging) {
+ echo "SENDING: " . print_r($postvars,true) . "\n";
+ echo "RECEIVING: " . $xml;
+ }
$res = simplexml_load_string($xml);