]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Inbox.php
Use the post language for the language detection / config for quality
[friendica.git] / src / Module / ActivityPub / Inbox.php
index 3ca3c7d779da66a3a05745e7009148a6b1869f2a..ee9d098da4620f44088513022357dbd139299c2c 100644 (file)
@@ -45,7 +45,7 @@ class Inbox extends BaseApi
 
        protected function rawContent(array $request = [])
        {
-               self::checkAllowedScope(self::SCOPE_READ);
+               $this->checkAllowedScope(self::SCOPE_READ);
                $uid  = self::getCurrentUserID();
                $page = $request['page'] ?? null;
 
@@ -61,12 +61,12 @@ class Inbox extends BaseApi
                        if ($owner['uid'] != $uid) {
                                throw new \Friendica\Network\HTTPException\ForbiddenException();
                        }
-                       $outbox = ActivityPub\Transmitter::getInbox($uid, $page, $request['max_id'] ?? null);
+                       $inbox = ActivityPub\ClientToServer::getInbox($uid, $page, $request['max_id'] ?? null);
                } else {
-                       $outbox = ActivityPub\Transmitter::getPublicInbox($uid, $page, $request['max_id'] ?? null);
+                       $inbox = ActivityPub\ClientToServer::getPublicInbox($uid, $page, $request['max_id'] ?? null);
                }
 
-               System::jsonExit($outbox, 'application/activity+json');
+               $this->jsonExit($inbox, 'application/activity+json');
        }
 
        protected function post(array $request = [])