]> git.mxchange.org Git - friendica.git/commitdiff
fix d* intros
authorFriendika <info@friendika.com>
Fri, 19 Aug 2011 05:03:58 +0000 (22:03 -0700)
committerFriendika <info@friendika.com>
Fri, 19 Aug 2011 05:03:58 +0000 (22:03 -0700)
include/diaspora.php

index b6f05be620cbb0130f83edd8d22e41b731a122e9..44772d431634d11eee8940021010c271bfec1994 100644 (file)
@@ -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;
 }