This commit is contained in:
Jeremy Dormitzer 2018-08-29 17:19:00 -04:00
parent 10419ade57
commit 0318708b4b

View File

@ -16,6 +16,7 @@ require_once plugin_dir_path( __FILE__ ) . '/activities/create.php';
require_once plugin_dir_path( __FILE__ ) . '/activities.php';
function handle_activity( $actor, $activity ) {
// TODO handle authentication/authorization
if ( !array_key_exists( "type", $activity ) ) {
return new \WP_Error(
'invalid_activity',