aboutsummaryrefslogtreecommitdiffstats
path: root/addon
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-14 02:25:26 -0700
committerFriendika <info@friendika.com>2011-05-14 02:25:26 -0700
commit86f2c56152b0a20552b74aa942ef4f0ad5cce385 (patch)
treec7b9a3ffa198871143186c6f1e1f39b5da621c7b /addon
parent2b720b5b7c36fe55adc2e5a6d64711597ca917f7 (diff)
downloadvolse-hubzilla-86f2c56152b0a20552b74aa942ef4f0ad5cce385.tar.gz
volse-hubzilla-86f2c56152b0a20552b74aa942ef4f0ad5cce385.tar.bz2
volse-hubzilla-86f2c56152b0a20552b74aa942ef4f0ad5cce385.zip
use best contact id available
Diffstat (limited to 'addon')
-rw-r--r--addon/facebook/facebook.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php
index 440f0e349..2aab3c5ee 100644
--- a/addon/facebook/facebook.php
+++ b/addon/facebook/facebook.php
@@ -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;