]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/NoScrape.php
Merge pull request #13800 from annando/channel-languages
[friendica.git] / src / Module / NoScrape.php
index 8751b30bea32a2c1a183a74d1cf93446975261ec..c4138ed709db5c2c0191a3bd2b3134993f4ffe3d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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 = [