]> git.mxchange.org Git - friendica-addons.git/commitdiff
add nurl to contact
authorFriendika <info@friendika.com>
Wed, 2 Nov 2011 07:34:01 +0000 (00:34 -0700)
committerFriendika <info@friendika.com>
Wed, 2 Nov 2011 07:34:01 +0000 (00:34 -0700)
facebook.tgz
facebook/facebook.php

index cdf526756236aa76df692af9b07954356982b588..3f21bdc469d6d5da0218a816ad5c2b6fcc730899 100644 (file)
Binary files a/facebook.tgz and b/facebook.tgz differ
index a54788952e31a8e136375acd0be912cbdc2d43fc..3c0a2a04fe75dd232b1359822ca87bdf70886447 100644 (file)
@@ -214,13 +214,14 @@ function fb_get_friends($uid) {
                                else {
 
                                        // create contact record 
-                                       $r = q("INSERT INTO `contact` ( `uid`, `created`, `url`, `addr`, `alias`, `notify`, `poll`, 
+                                       $r = q("INSERT INTO `contact` ( `uid`, `created`, `url`, `nurl`, `addr`, `alias`, `notify`, `poll`, 
                                                `name`, `nick`, `photo`, `network`, `rel`, `priority`,
                                                `writable`, `blocked`, `readonly`, `pending` )
-                                               VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, %d, 0, 0, 0 ) ",
+                                               VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, %d, 0, 0, 0 ) ",
                                                intval($uid),
                                                dbesc(datetime_convert()),
                                                dbesc($jp->link),
+                                               dbesc(normalise_link($jp->link)),
                                                dbesc(''),
                                                dbesc(''),
                                                dbesc($jp->id),