mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 19:50:20 +00:00
fbpost: Some public posts weren't fetched.
This commit is contained in:
parent
3c875dcf6e
commit
cb36c31f55
1 changed files with 3 additions and 3 deletions
|
@ -1030,10 +1030,9 @@ function fbpost_fetchwall($a, $uid) {
|
||||||
if ($item->application->id == get_config('facebook','appid'))
|
if ($item->application->id == get_config('facebook','appid'))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(isset($item->privacy) && $item->privacy->value !== 'EVERYONE')
|
if(isset($item->privacy) && ($item->privacy->value !== 'EVERYONE') && ($item->privacy->value !== ''))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
||||||
$_SESSION["authenticated"] = true;
|
$_SESSION["authenticated"] = true;
|
||||||
$_SESSION["uid"] = $uid;
|
$_SESSION["uid"] = $uid;
|
||||||
|
|
||||||
|
@ -1088,10 +1087,11 @@ function fbpost_fetchwall($a, $uid) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($datarray['app'] == "Events") and isset($item->actions))
|
/*if (($datarray['app'] == "Events") and isset($item->actions))
|
||||||
foreach ($item->actions as $action)
|
foreach ($item->actions as $action)
|
||||||
if ($action->name == "View")
|
if ($action->name == "View")
|
||||||
$_REQUEST["body"] .= " [url=".$action->link."]".$item->story."[/url]";
|
$_REQUEST["body"] .= " [url=".$action->link."]".$item->story."[/url]";
|
||||||
|
*/
|
||||||
|
|
||||||
if(trim($_REQUEST["body"]) == '') {
|
if(trim($_REQUEST["body"]) == '') {
|
||||||
logger('facebook: empty body '.$item->id.' '.print_r($item, true));
|
logger('facebook: empty body '.$item->id.' '.print_r($item, true));
|
||||||
|
|
Loading…
Reference in a new issue