From 813a16a37c99d6a8c05649f63de02438ffa5f07c Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 1 Nov 2018 08:29:08 -0400 Subject: [PATCH] Don't compact the publicKey --- includes/server/objects.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/server/objects.php b/includes/server/objects.php index 11dfbd3..57edaa7 100644 --- a/includes/server/objects.php +++ b/includes/server/objects.php @@ -338,6 +338,9 @@ function compact_object( $object ) { $object = \pterotype\util\dereference_object( $object ); $compacted = $object; foreach( $object as $field => $value ) { + if ( $field === 'publicKey' ) { + continue; + } if ( is_array( $value ) && array_key_exists( 'id', $value ) ) { $child_object = compact_object( $value ); create_object_if_not_exists( $child_object );