[WIP] Start implementing wrap object in Create
This commit is contained in:
parent
6f968f2da1
commit
7a725d9ded
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user