Skip to content

Commit b9fd26e

Browse files
committed
fix discovery issue
1 parent b49cc53 commit b9fd26e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activitypub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function init() {
5454
\Activitypub\Rest\Webfinger::init();
5555

5656
// load NodeInfo endpoints only if blog is public
57-
if ( 1 === \get_option( 'blog_public', 1 ) ) {
57+
if ( true === (bool) \get_option( 'blog_public', 1 ) ) {
5858
require_once \dirname( __FILE__ ) . '/includes/rest/class-nodeinfo.php';
5959
\Activitypub\Rest\NodeInfo::init();
6060
}

0 commit comments

Comments
 (0)