Warn the user when trying to fetch a non-public facebook page.

This commit is contained in:
teromene 2018-05-05 13:49:49 +01:00
parent 8770c87389
commit 79ebdc4b39

View file

@ -164,6 +164,12 @@ EOD;
}
//No captcha? We can carry on retrieving page contents :)
//First, we check wether the page is public or not
$loginForm = $html->find('._585r', 0);
if($loginForm != null) {
returnServerError('You must be logged in to view this page. This is not supported by RSS-Bridge.');
}
$element = $html
->find('#pagelet_timeline_main_column')[0]
->children(0)