use best contact id available
This commit is contained in:
parent
2b720b5b7c
commit
86f2c56152
|
@ -785,10 +785,9 @@ 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')) {
|
if(! x($cmntdata,'contact-id'))
|
||||||
logger('fb_consume: comment: no contact-id available');
|
$cmntdata['contact-id'] = $orig_post['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