From a227c99d23954836e6fe6a88715bc1cf2967016e Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 6 Mar 2019 18:23:02 -0500 Subject: [PATCH] Use Collection instead of OrderedCollection for followers/following --- src/Activities/AcceptHandler.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Activities/AcceptHandler.php b/src/Activities/AcceptHandler.php index 26aa1b5..abc757c 100644 --- a/src/Activities/AcceptHandler.php +++ b/src/Activities/AcceptHandler.php @@ -74,8 +74,8 @@ class AcceptHandler implements EventSubscriberInterface $updatedLocalActor['following'] = array( '@context' => $this->contextProvider->getContext(), 'id' => rtrim( $updatedLocalActor['id'], '/' ) . '/following', - 'type' => 'OrderedCollection', - 'orderedItems' => array(), + 'type' => 'Collection', + 'items' => array(), ); $localActor = $this->objectsService->update( $localActor['id'], $updatedLocalActor ); $following = $localActor['following']; @@ -128,8 +128,8 @@ class AcceptHandler implements EventSubscriberInterface $updatedLocalActor['followers'] = array( '@context' => $this->contextProvider->getContext(), 'id' => rtrim( $updatedLocalActor['id'], '/' ) . '/followers', - 'type' => 'OrderedCollection', - 'orderedItems' => array(), + 'type' => 'Collection', + 'items' => array(), ); $localActor = $this->objectsService->update( $localActor['id'], $updatedLocalActor ); $followers = $localActor['followers'];