aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_notify.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-03 17:40:04 -0800
committerFriendika <info@friendika.com>2011-02-03 17:40:04 -0800
commitc6b00f72305d467cb5eda32ed6499f81610d4338 (patch)
treea93f554ff92e0cd27b29d83501530bdbfebd37ce /mod/dfrn_notify.php
parente2c8bedfe57501f0ac15b09c053f603ea99344d6 (diff)
downloadvolse-hubzilla-c6b00f72305d467cb5eda32ed6499f81610d4338.tar.gz
volse-hubzilla-c6b00f72305d467cb5eda32ed6499f81610d4338.tar.bz2
volse-hubzilla-c6b00f72305d467cb5eda32ed6499f81610d4338.zip
allow parentless items from SN - add more tracing on notify failures
Diffstat (limited to 'mod/dfrn_notify.php')
-rw-r--r--mod/dfrn_notify.php13
1 files changed, 10 insertions, 3 deletions
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) {