diff --git a/inc/activities/update.php b/inc/activities/update.php new file mode 100644 index 0000000..54f82ef --- /dev/null +++ b/inc/activities/update.php @@ -0,0 +1,7 @@ + diff --git a/inc/outbox.php b/inc/outbox.php index e0c0201..e49af3d 100644 --- a/inc/outbox.php +++ b/inc/outbox.php @@ -12,8 +12,9 @@ When an Activity is received (i.e. POSTed) to an Actor's outbox, the server must */ namespace outbox; -require_once plugin_dir_path( __FILE__ ) . '/activities/create.php'; require_once plugin_dir_path( __FILE__ ) . '/activities.php'; +require_once plugin_dir_path( __FILE__ ) . '/activities/create.php'; +require_once plugin_dir_path( __FILE__ ) . '/activities/update.php'; function handle_activity( $actor, $activity ) { // TODO handle authentication/authorization @@ -29,6 +30,7 @@ function handle_activity( $actor, $activity ) { $activity = \activities\create\handle( $actor, $activity ); break; case 'Update': + $activity = \activities\update\handle( $actor, $activity ); break; case 'Delete': break;