aboutsummaryrefslogtreecommitdiffstats
path: root/addon
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-27 18:23:39 -0700
committerFriendika <info@friendika.com>2011-04-27 18:23:39 -0700
commit0377b6cdadfc7872ccb2a95d4f6ff5aed81d06ad (patch)
tree26444c6a06b1851ca8b95b3c96224433f082d33b /addon
parent64b12e3424f4d480a5d2cc0b2f49eb5133c9530a (diff)
downloadvolse-hubzilla-0377b6cdadfc7872ccb2a95d4f6ff5aed81d06ad.tar.gz
volse-hubzilla-0377b6cdadfc7872ccb2a95d4f6ff5aed81d06ad.tar.bz2
volse-hubzilla-0377b6cdadfc7872ccb2a95d4f6ff5aed81d06ad.zip
missed fb prefix on extid
Diffstat (limited to 'addon')
-rw-r--r--addon/facebook/facebook.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php
index 76bf878b5..0a1f5238e 100644
--- a/addon/facebook/facebook.php
+++ b/addon/facebook/facebook.php
@@ -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;