fix discovery issue
This commit is contained in:
parent
b49cc5333c
commit
b9fd26e755
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue