fix discovery issue

This commit is contained in:
Matthias Pfefferle 2021-05-10 14:39:54 +02:00
parent b49cc5333c
commit b9fd26e755

View file

@ -54,7 +54,7 @@ function init() {
\Activitypub\Rest\Webfinger::init();
// 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';
\Activitypub\Rest\NodeInfo::init();
}