From c4d8b7ad579bb70420cd0046c909914bbd1c992a Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 3 Sep 2018 21:33:14 -0400 Subject: [PATCH] Fix syntax errors --- inc/activities/update.php | 8 ++++---- inc/api.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/activities/update.php b/inc/activities/update.php index a92cc39..774003e 100644 --- a/inc/activities/update.php +++ b/inc/activities/update.php @@ -1,7 +1,7 @@ 400 ) ); } @@ -22,7 +22,7 @@ function handle( $actor, $activity ) { if ( !array_key_exists( 'id', $update_object ) ) { return new \WP_Error( 'invalid_object', - __( 'Object must have an "id" parameter', 'activitypub' ) + __( 'Object must have an "id" parameter', 'activitypub' ), array( 'status' => 400 ) ); } diff --git a/inc/api.php b/inc/api.php index 8e369bb..59a01b5 100644 --- a/inc/api.php +++ b/inc/api.php @@ -8,7 +8,7 @@ require_once plugin_dir_path( __FILE__ ) . '/activities.php'; function get_actor( $request ) { $actor = $request['actor']; - return \actors\get_actor_by_slug( $user ); + return \actors\get_actor_by_slug( $actor ); } function handle_activity( $request ) {