Rename create_activity to persist_activity

This commit is contained in:
Jeremy Dormitzer 2018-08-25 09:31:48 -04:00
parent db59ae8cf8
commit 43a4bc09a2
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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);