Merge pull request #121 from pfefferle/fix-nodeinfo
This commit is contained in:
commit
51a374567a
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