From 64a8ad6601139a686089c060e7dd7dbf51e72e13 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 14 Feb 2023 20:43:54 +0000 Subject: [PATCH] Fix variable name --- src/Module/ActivityPub/Inbox.php | 6 +++--- src/Protocol/ActivityPub/Processor.php | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Module/ActivityPub/Inbox.php b/src/Module/ActivityPub/Inbox.php index 33126676d..77085c119 100644 --- a/src/Module/ActivityPub/Inbox.php +++ b/src/Module/ActivityPub/Inbox.php @@ -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 = []) diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 859e7a245..6836eafe3 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -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;