add inbox
This commit is contained in:
parent
1a0777a06f
commit
e015edcbfd
1 changed files with 3 additions and 1 deletions
|
@ -19,13 +19,15 @@ function activitypub_init() {
|
||||||
require_once dirname( __FILE__ ) . '/includes/functions.php';
|
require_once dirname( __FILE__ ) . '/includes/functions.php';
|
||||||
|
|
||||||
require_once dirname( __FILE__ ) . '/includes/class-activitypub.php';
|
require_once dirname( __FILE__ ) . '/includes/class-activitypub.php';
|
||||||
add_filter( 'template_include', array( 'Activitypub', 'render_profile' ), 99 );
|
add_filter( 'template_include', array( 'Activitypub', 'render_json_template' ), 99 );
|
||||||
add_action( 'webfinger_user_data', array( 'Activitypub', 'add_webfinger_discovery' ), 10, 3 );
|
add_action( 'webfinger_user_data', array( 'Activitypub', 'add_webfinger_discovery' ), 10, 3 );
|
||||||
add_filter( 'query_vars', array( 'Activitypub', 'add_query_vars' ) );
|
add_filter( 'query_vars', array( 'Activitypub', 'add_query_vars' ) );
|
||||||
add_action( 'init', array( 'Activitypub', 'add_rewrite_endpoint' ) );
|
add_action( 'init', array( 'Activitypub', 'add_rewrite_endpoint' ) );
|
||||||
|
|
||||||
require_once dirname( __FILE__ ) . '/includes/class-activitypub-outbox.php';
|
require_once dirname( __FILE__ ) . '/includes/class-activitypub-outbox.php';
|
||||||
|
require_once dirname( __FILE__ ) . '/includes/class-activitypub-inbox.php';
|
||||||
// Configure the REST API route
|
// Configure the REST API route
|
||||||
add_action( 'rest_api_init', array( 'Activitypub_Outbox', 'register_routes' ) );
|
add_action( 'rest_api_init', array( 'Activitypub_Outbox', 'register_routes' ) );
|
||||||
|
add_action( 'rest_api_init', array( 'Activitypub_Inbox', 'register_routes' ) );
|
||||||
}
|
}
|
||||||
add_action( 'plugins_loaded', 'activitypub_init' );
|
add_action( 'plugins_loaded', 'activitypub_init' );
|
||||||
|
|
Loading…
Reference in a new issue