From 7904b0ff5ac5394905d7d5908f6dfeee1835192f Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sun, 24 Feb 2019 13:51:24 -0500 Subject: [PATCH] Add some TODOs --- src/Controllers/PostController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Controllers/PostController.php b/src/Controllers/PostController.php index ea3d477..81e687d 100644 --- a/src/Controllers/PostController.php +++ b/src/Controllers/PostController.php @@ -52,6 +52,9 @@ class PostController throw new NotFoundHttpException; } $object = $results[0]; + // TODO this assumes that every actor has a unique inbox URL + // and will break if multiple actors have the same inbox + // TODO also handle sharedInbox here $inboxField = $object->getReferencingField( 'inbox' ); if ( $inboxField ) { $activity = json_decode( $request->getContent(), true ); @@ -73,6 +76,8 @@ class PostController $this->eventDispatcher->dispatch( InboxActivityEvent::NAME, $event ); return $event->getResponse(); } + // TODO this assumes that every actor has a unique outbox URL + // and will break if multiple actors have the same outbox $outboxField = $object->getReferencingField( 'outbox' ); if ( $outboxField ) { $actorWithOutbox = $outboxField->getObject();