Merge pull request #121 from pfefferle/fix-nodeinfo

This commit is contained in:
Django 2021-05-18 21:17:46 -04:00 committed by GitHub
commit 51a374567a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ function init() {
\Activitypub\Rest\Webfinger::init(); \Activitypub\Rest\Webfinger::init();
// load NodeInfo endpoints only if blog is public // load NodeInfo endpoints only if blog is public
if ( 1 === \get_option( 'blog_public', 1 ) ) { if ( true === (bool) \get_option( 'blog_public', 1 ) ) {
require_once \dirname( __FILE__ ) . '/includes/rest/class-nodeinfo.php'; require_once \dirname( __FILE__ ) . '/includes/rest/class-nodeinfo.php';
\Activitypub\Rest\NodeInfo::init(); \Activitypub\Rest\NodeInfo::init();
} }