From 43a4bc09a202e5429ad8d4a4db5fead9430c5d53 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sat, 25 Aug 2018 09:31:48 -0400 Subject: [PATCH] Rename create_activity to persist_activity --- inc/api.php | 2 +- inc/outbox.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/api.php b/inc/api.php index 2469c8a..0fcd01d 100644 --- a/inc/api.php +++ b/inc/api.php @@ -13,7 +13,7 @@ function get_user_actor( $request ) { function post_to_outbox( $request ) { $handle = $request['handle'] ; $activity = json_decode( $request->get_body() ); - return \outbox\create_activity( $handle, $activity ); + return \outbox\persist_activity( $handle, $activity ); } function register_routes() { diff --git a/inc/outbox.php b/inc/outbox.php index ff004b4..e8f6119 100644 --- a/inc/outbox.php +++ b/inc/outbox.php @@ -25,7 +25,7 @@ function create_outbox_table() { ); } -function create_activity( $actor, $activity ) { +function persist_activity( $actor, $activity ) { // TODO validate activity and actor; handle errors global $wpdb; $activity_json = wp_json_encode($activity);