[WIP] Begin implementing Update

This commit is contained in:
Jeremy Dormitzer 2018-08-29 17:19:10 -04:00
parent 0318708b4b
commit c2025e331e
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,7 @@
<?php
namespace \activities\update;
function handle( $actor, $activity ) {
}
?>

View File

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