missed fb prefix on extid
This commit is contained in:
parent
64b12e3424
commit
0377b6cdad
|
@ -509,7 +509,7 @@ function facebook_post_hook(&$a,&$b) {
|
||||||
$retj = json_decode($x);
|
$retj = json_decode($x);
|
||||||
if($retj->id) {
|
if($retj->id) {
|
||||||
q("UPDATE `item` SET `extid` = '%s' WHERE `id` = %d LIMIT 1",
|
q("UPDATE `item` SET `extid` = '%s' WHERE `id` = %d LIMIT 1",
|
||||||
dbesc($retj->id),
|
dbesc('fb::' . $retj->id),
|
||||||
intval($b['id'])
|
intval($b['id'])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -731,6 +731,8 @@ function fb_consume_stream($uid,$j,$wall = false) {
|
||||||
if(count($r))
|
if(count($r))
|
||||||
$cmntdata['contact-id'] = $r[0]['id'];
|
$cmntdata['contact-id'] = $r[0]['id'];
|
||||||
}
|
}
|
||||||
|
if(! x($cmntdata,'contact-id'))
|
||||||
|
return;
|
||||||
$cmntdata['created'] = datetime_convert('UTC','UTC',$cmnt->created_time);
|
$cmntdata['created'] = datetime_convert('UTC','UTC',$cmnt->created_time);
|
||||||
$cmntdata['edited'] = datetime_convert('UTC','UTC',$cmnt->created_time);
|
$cmntdata['edited'] = datetime_convert('UTC','UTC',$cmnt->created_time);
|
||||||
$cmntdata['verb'] = ACTIVITY_POST;
|
$cmntdata['verb'] = ACTIVITY_POST;
|
||||||
|
|
Loading…
Reference in a new issue