aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-18 22:01:35 -0700
committerFriendika <info@friendika.com>2011-08-18 22:01:35 -0700
commit0a0c5013ce726f39bd25760518d15276418d8766 (patch)
treeaf4a439fd348a884678a1a22238e36c3af77eb34 /include
parent9167b2057ba3dfb2840c5821de4a269ef93c9549 (diff)
downloadvolse-hubzilla-0a0c5013ce726f39bd25760518d15276418d8766.tar.gz
volse-hubzilla-0a0c5013ce726f39bd25760518d15276418d8766.tar.bz2
volse-hubzilla-0a0c5013ce726f39bd25760518d15276418d8766.zip
debug
Diffstat (limited to 'include')
-rw-r--r--include/diaspora.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index 9e6e9eb60..b6f05be62 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -318,14 +318,14 @@ function diaspora_request($importer,$xml) {
return;
}
- require_once('include/Scrape.php');
- $ret = probe_url($sender_handle);
+ $ret = find_diaspora_person_by_handle($sender_handle);
+
if((! count($ret)) || ($ret['network'] != NETWORK_DIASPORA)) {
logger('diaspora_request: Cannot resolve diaspora handle ' . $sender_handle . ' for ' . $recipient_handle);
return;
}
-
+dbg(1);
$r = q("INSERT INTO `contact` (`uid`, `network`,`addr`,`created`,`url`,`name`,`nick`,`photo`,`pubkey`,`notify`,`poll`,`blocked`,`priority`)
VALUES ( %d, '%s', '%s', '%s','%s','%s','%s','%s','%s','%s','%s',%d,%d) ",
intval($importer['uid']),
@@ -360,7 +360,7 @@ function diaspora_request($importer,$xml) {
dbesc(datetime_convert())
);
}
-
+dbg(0);
return;
}