fbpost: Only mirror posts from pages when they are from the page id

privacy_image_cache: Save pictures with extensions
This commit is contained in:
Michael Vogel 2013-02-18 23:39:27 +01:00
parent 6b124bf016
commit d34c78296e
2 changed files with 26 additions and 8 deletions

View 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;