From b9fd26e75530d7951d3867194d3f1ac204f6ac04 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 10 May 2021 14:39:54 +0200 Subject: [PATCH] fix discovery issue --- activitypub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }