aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-18 22:03:58 -0700
committerFriendika <info@friendika.com>2011-08-18 22:03:58 -0700
commit4cef4ec918db7d2f4f5902b4a731f4076a98084d (patch)
tree55cfb526813a204aebbab1e64e23e2d601a386f4 /include
parent0a0c5013ce726f39bd25760518d15276418d8766 (diff)
downloadvolse-hubzilla-4cef4ec918db7d2f4f5902b4a731f4076a98084d.tar.gz
volse-hubzilla-4cef4ec918db7d2f4f5902b4a731f4076a98084d.tar.bz2
volse-hubzilla-4cef4ec918db7d2f4f5902b4a731f4076a98084d.zip
fix d* intros
Diffstat (limited to 'include')
-rw-r--r--include/diaspora.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index b6f05be62..44772d431 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -325,7 +325,7 @@ function diaspora_request($importer,$xml) {
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']),
@@ -351,16 +351,17 @@ dbg(1);
if($contact_record) {
$ret = q("INSERT INTO `intro` ( `uid`, `contact-id`, `blocked`, `knowyou`, `note`, `hash`, `datetime` )
- VALUES ( %d, %d, 1, %d, '%s', '%s', '%s' )",
+ VALUES ( %d, %d, %d, %d, '%s', '%s', '%s' )",
intval($importer['uid']),
intval($contact_record['id']),
0,
+ 0,
dbesc( t('Sharing notification from Diaspora network')),
dbesc($hash),
dbesc(datetime_convert())
);
}
-dbg(0);
+
return;
}