Browse Source

use best contact id available

pull/1/head
Friendika 10 years ago
parent
commit
86f2c56152
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      addon/facebook/facebook.php

+ 3
- 4
addon/facebook/facebook.php View File

@ -785,10 +785,9 @@ function fb_consume_stream($uid,$j,$wall = false) {
if(count($r))
$cmntdata['contact-id'] = $r[0]['id'];
}
if(! x($cmntdata,'contact-id')) {
logger('fb_consume: comment: no contact-id available');
return;
}
if(! x($cmntdata,'contact-id'))
$cmntdata['contact-id'] = $orig_post['contact-id'];
$cmntdata['created'] = datetime_convert('UTC','UTC',$cmnt->created_time);
$cmntdata['edited'] = datetime_convert('UTC','UTC',$cmnt->created_time);
$cmntdata['verb'] = ACTIVITY_POST;


Loading…
Cancel
Save