]> git.mxchange.org Git - friendica-addons.git/commitdiff
fbpost: Some public posts weren't fetched.
authorMichael Vogel <icarus@dabo.de>
Wed, 2 Jan 2013 20:05:14 +0000 (21:05 +0100)
committerMichael Vogel <icarus@dabo.de>
Wed, 2 Jan 2013 20:05:14 +0000 (21:05 +0100)
fbpost/fbpost.php

index 9c2ee0cbdb46d9ce8e3737ccbe25d364bfccf043..890f805b8641526acebdef98ec493e1ffba96cde 100644 (file)
@@ -1030,10 +1030,9 @@ function fbpost_fetchwall($a, $uid) {
                if ($item->application->id == get_config('facebook','appid'))
                        continue;
 
-               if(isset($item->privacy) && $item->privacy->value !== 'EVERYONE')
+               if(isset($item->privacy) && ($item->privacy->value !== 'EVERYONE') && ($item->privacy->value !== ''))
                        continue;
 
-
                $_SESSION["authenticated"] = true;
                $_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)
                                if ($action->name == "View")
                                        $_REQUEST["body"] .= " [url=".$action->link."]".$item->story."[/url]";
+               */
 
                if(trim($_REQUEST["body"]) == '') {
                        logger('facebook: empty body '.$item->id.' '.print_r($item, true));