]> git.mxchange.org Git - friendica.git/blobdiff - mod/noscrape.php
Events: Now with guid.
[friendica.git] / mod / noscrape.php
index 4be1a740cd87b6eaaa4d135c256ad6b11d77bb80..2a04605469b845745755b2bce39eb3a5f9472972 100644 (file)
@@ -15,8 +15,12 @@ function noscrape_init(&$a) {
 
        profile_load($a,$which,$profile);
 
-       if(!$a->profile['net-publish'])
-               killme();
+       if (!$a->profile['net-publish'] OR $a->profile['hidewall']) {
+               header('Content-type: application/json; charset=utf-8');
+               $json_info = array("hide" => true);
+               echo json_encode($json_info);
+               exit;
+       }
 
        $keywords = ((x($a->profile,'pub_keywords')) ? $a->profile['pub_keywords'] : '');
        $keywords = str_replace(array('#',',',' ',',,'),array('',' ',',',','),$keywords);