]> git.mxchange.org Git - friendica.git/commitdiff
Fix variable name
authorMichael <heluecht@pirati.ca>
Tue, 14 Feb 2023 20:43:54 +0000 (20:43 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 14 Feb 2023 20:43:54 +0000 (20:43 +0000)
src/Module/ActivityPub/Inbox.php
src/Protocol/ActivityPub/Processor.php

index 33126676dd4c2664aa8393f49f458ef2f4619c3e..77085c119a346ff116209ef8c027f22764608db6 100644 (file)
@@ -61,12 +61,12 @@ class Inbox extends BaseApi
                        if ($owner['uid'] != $uid) {
                                throw new \Friendica\Network\HTTPException\ForbiddenException();
                        }
-                       $outbox = ActivityPub\ClientToServer::getInbox($uid, $page, $request['max_id'] ?? null);
+                       $inbox = ActivityPub\ClientToServer::getInbox($uid, $page, $request['max_id'] ?? null);
                } else {
-                       $outbox = ActivityPub\ClientToServer::getPublicInbox($uid, $page, $request['max_id'] ?? null);
+                       $inbox = ActivityPub\ClientToServer::getPublicInbox($uid, $page, $request['max_id'] ?? null);
                }
 
-               System::jsonExit($outbox, 'application/activity+json');
+               System::jsonExit($inbox, 'application/activity+json');
        }
 
        protected function post(array $request = [])
index 859e7a24512da57518ccfb70a37f16ed9aefec4d..6836eafe3472f50a3a38657eed9db738fa053e9e 100644 (file)
@@ -35,7 +35,6 @@ use Friendica\Model\APContact;
 use Friendica\Model\Contact;
 use Friendica\Model\Conversation;
 use Friendica\Model\Event;
-use Friendica\Model\Group;
 use Friendica\Model\GServer;
 use Friendica\Model\Item;
 use Friendica\Model\ItemURI;