]> 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 ab72b4e15249d71e9f38feba68ff4f98937460bb..d78f6e83f73958f4591ae82b5c1068f459044e90 100644 (file)
@@ -29,7 +29,7 @@ use Friendica\Module\BaseApi;
 use Friendica\Protocol\ActivityPub;
 
 /**
- * Dummy class for all currently unimplemented endpoints
+ * "who am i" endpoint for ActivityPub C2S
  */
 class Whoami extends BaseApi
 {
@@ -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);
@@ -96,10 +96,10 @@ class Whoami extends BaseApi
                        'oauthRegistrationEndpoint'  => DI::baseUrl() . '/api/v1/apps',
                        'oauthTokenEndpoint'         => DI::baseUrl() . '/oauth/token',
                        'sharedInbox'                => DI::baseUrl() . '/inbox',
-                       'uploadMedia'                => DI::baseUrl() . '/api/upload_media' // @todo Endpoint does not exist at the moment
+//                     'uploadMedia'                => DI::baseUrl() . '/api/upload_media' // @todo Endpoint does not exist at the moment
                ];
 
                $data['generator'] = ActivityPub\Transmitter::getService();
-               System::jsonExit($data, 'application/activity+json');
+               $this->jsonExit($data, 'application/activity+json');
        }
 }