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 ) {