]> git.mxchange.org Git - friendica.git/commitdiff
Output all technical fields - even for hidden contacts
authorMichael <heluecht@pirati.ca>
Tue, 13 Nov 2018 07:09:14 +0000 (07:09 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 13 Nov 2018 07:09:14 +0000 (07:09 +0000)
mod/noscrape.php

index 0964e85ca1e4a26e1d6ef62ca39ba09e83575a2c..87367d5369e8f3c9c6e52ba72a7e558f4e40166b 100644 (file)
@@ -36,6 +36,11 @@ function noscrape_init(App $a)
                'account-type' => $a->profile['account-type'],
        ];
 
+       $dfrn_pages = ['request', 'confirm', 'notify', 'poll'];
+       foreach ($dfrn_pages as $dfrn) {
+               $json_info["dfrn-{$dfrn}"] = System::baseUrl()."/dfrn_{$dfrn}/{$which}";
+       }
+
        if (!$a->profile['net-publish'] || $a->profile['hidewall']) {
                header('Content-type: application/json; charset=utf-8');
                $json_info["hide"] = true;
@@ -99,11 +104,6 @@ function noscrape_init(App $a)
                }
        }
 
-       $dfrn_pages = ['request', 'confirm', 'notify', 'poll'];
-       foreach ($dfrn_pages as $dfrn) {
-               $json_info["dfrn-{$dfrn}"] = System::baseUrl()."/dfrn_{$dfrn}/{$which}";
-       }
-
        //Output all the JSON!
        header('Content-type: application/json; charset=utf-8');
        echo json_encode($json_info);