Set "hide" in noscrape

This commit is contained in:
Michael Vogel 2016-05-04 23:50:31 +02:00
parent fbc5404522
commit ed485b9d61
2 changed files with 12 additions and 4 deletions

View file

@ -15,8 +15,12 @@ function noscrape_init(&$a) {
profile_load($a,$which,$profile);
if(!$a->profile['net-publish'])
if(!$a->profile['net-publish']) {
header('Content-type: application/json; charset=utf-8');
$json_info = array("hide" => true);
echo json_encode($json_info);
killme();
}
$keywords = ((x($a->profile,'pub_keywords')) ? $a->profile['pub_keywords'] : '');
$keywords = str_replace(array('#',',',' ',',,'),array('',' ',',',','),$keywords);