From 263ab187abad007705cee59b4ef9440143e52e96 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 27 Sep 2018 18:46:21 -0400 Subject: [PATCH] Fix the require paths --- includes/init.php | 6 +++--- includes/server/activities.php | 4 ++++ includes/server/activities/accept.php | 8 ++++---- includes/server/activities/announce.php | 4 ++-- includes/server/activities/block.php | 4 ++-- includes/server/activities/create.php | 2 +- includes/server/activities/delete.php | 2 +- includes/server/activities/follow.php | 8 ++++---- includes/server/activities/like.php | 6 +++--- includes/server/activities/reject.php | 6 +++--- includes/server/activities/undo.php | 14 +++++++------- includes/server/activities/update.php | 2 +- includes/server/api.php | 14 +++++++------- includes/server/deliver.php | 2 ++ includes/server/followers.php | 4 ++-- includes/server/following.php | 2 +- includes/server/inbox.php | 22 +++++++++++----------- includes/server/likes.php | 2 +- includes/server/outbox.php | 20 ++++++++++---------- includes/server/shares.php | 2 +- 20 files changed, 70 insertions(+), 64 deletions(-) diff --git a/includes/init.php b/includes/init.php index 0b0c18f..1bde597 100644 --- a/includes/init.php +++ b/includes/init.php @@ -1,9 +1,9 @@ get_var( $wpdb->prepare( @@ -48,6 +50,7 @@ function strip_private_fields( $activity ) { function persist_activity( $activity ) { global $wpdb; + $activity = \util\dereference_object( $activity ); if ( !array_key_exists( 'id', $activity ) ) { return new \WP_Error( 'invalid_activity', @@ -74,6 +77,7 @@ function persist_activity( $activity ) { function create_local_activity( $activity ) { global $wpdb; + $activity = \util\dereference_object( $activity ); if ( !array_key_exists( 'type', $activity ) ) { return new \WP_Error( 'invalid_activity', diff --git a/includes/server/activities/accept.php b/includes/server/activities/accept.php index 4cf425e..2f2d6ec 100644 --- a/includes/server/activities/accept.php +++ b/includes/server/activities/accept.php @@ -1,10 +1,10 @@