Added some explanation, beautified code
This commit is contained in:
parent
a785d8c2f9
commit
8c23fea1df
2 changed files with 6 additions and 4 deletions
|
@ -248,6 +248,8 @@ class Delivery {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We don't have a relationship with contacts on a public post.
|
||||||
|
// Se we transmit with the new method and via Diaspora as a fallback
|
||||||
if ($items[0]['uid'] == 0) {
|
if ($items[0]['uid'] == 0) {
|
||||||
$deliver_status = DFRN::transmit($owner, $contact, $atom);
|
$deliver_status = DFRN::transmit($owner, $contact, $atom);
|
||||||
if ($deliver_status < 200) {
|
if ($deliver_status < 200) {
|
||||||
|
|
|
@ -68,7 +68,7 @@ class PubSubPublish {
|
||||||
$rr['topic']),
|
$rr['topic']),
|
||||||
"X-Hub-Signature: sha1=".$hmac_sig];
|
"X-Hub-Signature: sha1=".$hmac_sig];
|
||||||
|
|
||||||
logger('POST '.print_r($headers, true)."\n".$params, LOGGER_DEBUG);
|
logger('POST '.print_r($headers, true)."\n".$params, LOGGER_DATA);
|
||||||
|
|
||||||
Network::post($rr['callback_url'], $params, $headers);
|
Network::post($rr['callback_url'], $params, $headers);
|
||||||
$ret = $a->get_curl_code();
|
$ret = $a->get_curl_code();
|
||||||
|
|
Loading…
Reference in a new issue