Rename create_activity to persist_activity
This commit is contained in:
parent
db59ae8cf8
commit
43a4bc09a2
@ -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() {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user