X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fpubsub.php;h=df27c6bc2b72d141c3b8e92117a442aeccb1698a;hb=527e050ecc1037973595fd5de12682cfa9e19d64;hp=c55100c96a3a5b54cc323d645012e72a3e9a0539;hpb=7db4a0dd2ee631c4b0652e5852b1bb6f5ca50e63;p=friendica.git diff --git a/mod/pubsub.php b/mod/pubsub.php index c55100c96a..df27c6bc2b 100644 --- a/mod/pubsub.php +++ b/mod/pubsub.php @@ -39,7 +39,8 @@ function pubsub_init(&$a) { $hub_lease = ((x($_GET,'hub_lease_seconds')) ? notags(trim($_GET['hub_lease_seconds'])) : ''); $hub_verify = ((x($_GET,'hub_verify_token')) ? notags(trim($_GET['hub_verify_token'])) : ''); - logger('pubsub: Subscription from' . $_SERVER['REMOTE_ADDR'] . print_r($_GET,true)); + logger('pubsub: Subscription from ' . $_SERVER['REMOTE_ADDR']); + logger('pubsub: data: ' . print_r($_GET,true), LOGGER_DATA); $subscribe = (($hub_mode === 'subscribe') ? 1 : 0); @@ -104,8 +105,10 @@ function pubsub_post(&$a) { intval($contact_id), intval($importer['uid']) ); - if(! count($r)) + if(! count($r)) { + logger('pubsub: no contact record - ignored'); hub_post_return(); + } $contact = $r[0];