]> git.mxchange.org Git - friendica-addons.git/blobdiff - fbpost/fbpost.php
fbpost: Only mirror posts from pages when they are from the page id
[friendica-addons.git] / fbpost / fbpost.php
index 1486afdb2ba6efb802cf87075ccfd16c2c813d29..4270816402e37fc1559a5d73b8c9f251a923550d 100644 (file)
@@ -1042,6 +1042,9 @@ function fbpost_fetchwall($a, $uid) {
                if(isset($item->privacy) && ($item->privacy->value !== 'EVERYONE') && ($item->privacy->value !== ''))
                        continue;
 
+               if (($post_to_page != $item->from->id) AND ((int)$post_to_page != 0))
+                       continue;
+
                $_SESSION["authenticated"] = true;
                $_SESSION["uid"] = $uid;