check if blog author is enabled or not

thanks for your help with debugging @akirk
This commit is contained in:
Matthias Pfefferle 2024-01-18 15:54:42 +01:00
parent 4fafea35e7
commit b612ce0f8e

View file

@ -100,6 +100,11 @@ class Activitypub {
return $template;
}
// check if blog-user is enabled
if ( \is_home() && is_wp_error( Users::get_by_id( Users::BLOG_USER_ID ) ) ) {
return $template;
}
if ( \is_author() ) {
$json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/author-json.php';
} elseif ( is_comment() ) {