fix NodeInfo check

This commit is contained in:
Matthias Pfefferle 2023-05-08 21:05:20 +02:00
parent 77112c441f
commit 6d96daa635

View file

@ -280,7 +280,7 @@ class Activitypub {
);
}
if ( ! \class_exists( 'Nodeinfo' ) || (bool) \get_option( 'blog_public', 1 ) ) {
if ( ! \class_exists( 'Nodeinfo' ) && true === (bool) \get_option( 'blog_public', 1 ) ) {
\add_rewrite_rule(
'^.well-known/nodeinfo',
'index.php?rest_route=/activitypub/1.0/nodeinfo/discovery',