From c6b00f72305d467cb5eda32ed6499f81610d4338 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 3 Feb 2011 17:40:04 -0800 Subject: allow parentless items from SN - add more tracing on notify failures --- mod/dfrn_notify.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'mod') diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index cad7f9563..56b2c0bb1 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -24,7 +24,13 @@ function dfrn_notify_post(&$a) { dbesc($challenge) ); if(! count($r)) { - logger('dfrn_notify: could not match challenge to dfrn_id ' . $dfrn_id); + logger('dfrn_notify: could not match challenge to dfrn_id ' . $dfrn_id . ' challenge=' . $challenge); + + // apply some extra tracing + dbg(1); + q("SELECT * FROM `challenge` WHERE 1"); + dbg(0); + xml_status(3); } @@ -468,12 +474,13 @@ function dfrn_notify_content(&$a) { $r = q("DELETE FROM `challenge` WHERE `expire` < " . intval(time())); $r = q("INSERT INTO `challenge` ( `challenge`, `dfrn-id`, `expire` ) - VALUES( '%s', '%s', '%s') ", + VALUES( '%s', '%s', %d ) ", dbesc($hash), dbesc($dfrn_id), - intval(time() + 60 ) + intval(time() + 90 ) ); + logger('dfrn_notify: challenge=' . $hash . ' return value=' . $r); $sql_extra = ''; switch($direction) { -- cgit v1.2.3