]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/NoScrape.php
Improved asynchronous message procession
[friendica.git] / src / Module / NoScrape.php
index f5c5c725e0344928cca6bbd0f745f94025f0faed..cef7cdce72010dbbcaba891a05fc70e2e2ce0e9c 100644 (file)
@@ -45,13 +45,13 @@ class NoScrape extends BaseModule
                        // view infos about a known profile (needs a login)
                        $which = $a->getLoggedInUserNickname();
                } else {
-                       System::jsonError(403, 'Authentication required');
+                       $this->jsonError(403, 'Authentication required');
                }
 
                $owner = User::getOwnerDataByNick($which);
 
                if (empty($owner['uid'])) {
-                       System::jsonError(404, 'Profile not found');
+                       $this->jsonError(404, 'Profile not found');
                }
 
                $json_info = [
@@ -71,7 +71,7 @@ class NoScrape extends BaseModule
 
                if (!$owner['net-publish']) {
                        $json_info['hide'] = true;
-                       System::jsonExit($json_info);
+                       $this->jsonExit($json_info);
                }
 
                $keywords = $owner['pub_keywords'] ?? '';
@@ -107,6 +107,6 @@ class NoScrape extends BaseModule
                        }
                }
 
-               System::jsonExit($json_info);
+               $this->jsonExit($json_info);
        }
 }