[WIP] Start implementing wrap object in Create

This commit is contained in:
Jeremy Dormitzer 2018-09-04 12:44:31 -06:00
parent 6f968f2da1
commit 7a725d9ded

View File

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