Use Collection instead of OrderedCollection for followers/following

This commit is contained in:
Jeremy Dormitzer 2019-03-06 18:23:02 -05:00
parent c737625ead
commit a227c99d23

View File

@ -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'];