init missing Nodeinfo endpoint

This commit is contained in:
Matthias Pfefferle 2023-05-17 09:02:09 +02:00
parent 3d16b8de1d
commit d89c05aa49

View file

@ -32,8 +32,8 @@ function init() {
\define( 'ACTIVITYPUB_PLUGIN_FILE', plugin_dir_path( __FILE__ ) . '/' . basename( __FILE__ ) ); \define( 'ACTIVITYPUB_PLUGIN_FILE', plugin_dir_path( __FILE__ ) . '/' . basename( __FILE__ ) );
Migration::init(); Migration::init();
Activity_Dispatcher::init();
Activitypub::init(); Activitypub::init();
Activity_Dispatcher::init();
Collection\Followers::init(); Collection\Followers::init();
// Configure the REST API route // Configure the REST API route
@ -41,13 +41,13 @@ function init() {
Rest\Inbox::init(); Rest\Inbox::init();
Rest\Followers::init(); Rest\Followers::init();
Rest\Following::init(); Rest\Following::init();
Rest\Nodeinfo::init();
Rest\Webfinger::init(); Rest\Webfinger::init();
Admin::init(); Admin::init();
Hashtag::init(); Hashtag::init();
Shortcodes::init(); Shortcodes::init();
Mention::init(); Mention::init();
Debug::init();
Health_Check::init(); Health_Check::init();
Scheduler::init(); Scheduler::init();
} }
@ -96,6 +96,7 @@ if ( \get_option( 'blog_public', 1 ) ) {
$debug_file = \dirname( __FILE__ ) . '/includes/debug.php'; $debug_file = \dirname( __FILE__ ) . '/includes/debug.php';
if ( \WP_DEBUG && file_exists( $debug_file ) && is_readable( $debug_file ) ) { if ( \WP_DEBUG && file_exists( $debug_file ) && is_readable( $debug_file ) ) {
require_once $debug_file; require_once $debug_file;
Debug::init();
} }
/** /**