]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Whoami.php
Use the post language for the language detection / config for quality
[friendica.git] / src / Module / ActivityPub / Whoami.php
index cac21744f897d96168c8127829365e6496500c5b..d78f6e83f73958f4591ae82b5c1068f459044e90 100644 (file)
@@ -38,7 +38,7 @@ class Whoami extends BaseApi
         */
        protected function rawContent(array $request = [])
        {
-               self::checkAllowedScope(self::SCOPE_READ);
+               $this->checkAllowedScope(self::SCOPE_READ);
                $uid = self::getCurrentUserID();
 
                $owner = User::getOwnerDataById($uid);
@@ -100,6 +100,6 @@ class Whoami extends BaseApi
                ];
 
                $data['generator'] = ActivityPub\Transmitter::getService();
-               System::jsonExit($data, 'application/activity+json');
+               $this->jsonExit($data, 'application/activity+json');
        }
 }