[WIP] Begin implementing Update
This commit is contained in:
parent
0318708b4b
commit
c2025e331e
7
inc/activities/update.php
Normal file
7
inc/activities/update.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
namespace \activities\update;
|
||||
|
||||
function handle( $actor, $activity ) {
|
||||
|
||||
}
|
||||
?>
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user