]> git.mxchange.org Git - friendica.git/commitdiff
missed fb prefix on extid
authorFriendika <info@friendika.com>
Thu, 28 Apr 2011 01:23:39 +0000 (18:23 -0700)
committerFriendika <info@friendika.com>
Thu, 28 Apr 2011 01:23:39 +0000 (18:23 -0700)
addon/facebook/facebook.php

index 76bf878b52ba1726f9e7edb0ec0e62e5419c1437..0a1f5238e49bbce5f77493e3d09fcf36947c179a 100644 (file)
@@ -509,7 +509,7 @@ function facebook_post_hook(&$a,&$b) {
                                $retj = json_decode($x);
                                if($retj->id) {
                                        q("UPDATE `item` SET `extid` = '%s' WHERE `id` = %d LIMIT 1",
-                                               dbesc($retj->id),
+                                               dbesc('fb::' . $retj->id),
                                                intval($b['id'])
                                        );
                                }
@@ -731,6 +731,8 @@ function fb_consume_stream($uid,$j,$wall = false) {
                                        if(count($r))
                                                $cmntdata['contact-id'] = $r[0]['id'];
                                }
+                               if(! x($cmntdata,'contact-id'))
+                                       return;
                                $cmntdata['created'] = datetime_convert('UTC','UTC',$cmnt->created_time);
                                $cmntdata['edited']  = datetime_convert('UTC','UTC',$cmnt->created_time);
                                $cmntdata['verb'] = ACTIVITY_POST;