aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-06 23:10:32 -0700
committerfriendica <info@friendica.com>2012-06-06 23:10:32 -0700
commit6477c24919eb969d80324cf29129213f2fb8a0ea (patch)
tree637b8c26c76ec0a3cd01ec3907fba0af9936bc00
parentd2e86bdabc759b56ad8a9734bd0566aee036485e (diff)
downloadvolse-hubzilla-6477c24919eb969d80324cf29129213f2fb8a0ea.tar.gz
volse-hubzilla-6477c24919eb969d80324cf29129213f2fb8a0ea.tar.bz2
volse-hubzilla-6477c24919eb969d80324cf29129213f2fb8a0ea.zip
more logging on subscribe_to_hub
-rwxr-xr-xinclude/items.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 4513db1db..66e219ddf 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2777,6 +2777,8 @@ function lose_sharer($importer,$contact,$datarray,$item) {
function subscribe_to_hub($url,$importer,$contact,$hubmode = 'subscribe') {
+ $a = get_app();
+
if(is_array($importer)) {
$r = q("SELECT `nickname` FROM `user` WHERE `uid` = %d LIMIT 1",
intval($importer['uid'])
@@ -2807,7 +2809,10 @@ function subscribe_to_hub($url,$importer,$contact,$hubmode = 'subscribe') {
);
}
- post_url($url,$params);
+ post_url($url,$params);
+
+ logger('subscribe_to_hub: returns: ' . $a->get_curl_code(), LOGGER_DEBUG);
+
return;
}