From 7a725d9ded811a7182db9e417e38671616d95574 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 4 Sep 2018 12:44:31 -0600 Subject: [PATCH] [WIP] Start implementing wrap object in Create --- inc/outbox.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/inc/outbox.php b/inc/outbox.php index 18b2b0f..8d0aa3a 100644 --- a/inc/outbox.php +++ b/inc/outbox.php @@ -70,7 +70,8 @@ function handle_activity( $actor, $activity ) { ); break; default: - // handle wrapping object in Create activity + $create_activity = wrap_object_in_create( $activity ); + $activity = \activities\create\handle( $actor, $create_activity ); break; } if ( is_wp_error( $activity ) ) { @@ -100,6 +101,10 @@ function persist_activity( $actor, $activity ) { return $response; } +function wrap_object_in_create( $object ) { + // TODO +} + function create_outbox_table() { global $wpdb; $wpdb->query(