diff --git a/activitypub.php b/activitypub.php index 3eef785..c268088 100644 --- a/activitypub.php +++ b/activitypub.php @@ -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(); }