mirror of
https://github.com/Automattic/wordpress-activitypub
synced 2024-10-18 20:23:31 +00:00
check if blog author is enabled or not
thanks for your help with debugging @akirk
This commit is contained in:
parent
4fafea35e7
commit
b612ce0f8e
1 changed files with 5 additions and 0 deletions
|
@ -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() ) {
|
||||
|
|
Loading…
Reference in a new issue