forked from friendica/friendica-addons
Facebook: Design issues in the export
This commit is contained in:
parent
cb93edf725
commit
9ff72061f2
1 changed files with 8 additions and 2 deletions
|
@ -1270,9 +1270,15 @@ function fb_consume_stream($uid,$j,$wall = false) {
|
||||||
// don't store post if we don't have a contact
|
// don't store post if we don't have a contact
|
||||||
|
|
||||||
if(! x($datarray,'contact-id')) {
|
if(! x($datarray,'contact-id')) {
|
||||||
|
if (get_config('facebook', 'pages')) {
|
||||||
|
// If no user is found then post it under the own id.
|
||||||
|
// Definitely a quickhack
|
||||||
|
$datarray['contact-id'] = $self[0]['id'];
|
||||||
|
} else {
|
||||||
logger('no contact: post ignored');
|
logger('no contact: post ignored');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$datarray['verb'] = ACTIVITY_POST;
|
$datarray['verb'] = ACTIVITY_POST;
|
||||||
if($wall) {
|
if($wall) {
|
||||||
|
|
Loading…
Reference in a new issue