From c2025e331e78ba312165522fcaf5c6f6861aa1ab Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 29 Aug 2018 17:19:10 -0400 Subject: [PATCH] [WIP] Begin implementing Update --- inc/activities/update.php | 7 +++++++ inc/outbox.php | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 inc/activities/update.php 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;