Skip to content

Commit 9de5552

Browse files
committed
remove blog path from author page
1 parent 8354a4c commit 9de5552

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

mu-plugins/activitypub-migration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ function activitypub_actor_migration( array $actor ) {
2525

2626
$host = wp_parse_url( get_home_url(), PHP_URL_HOST );
2727
$id = str_replace( $host, 'blog.' . $host, $actor['id'] );
28+
$id = str_replace( '/blog/', '/', $id );
2829

2930
$actor['alsoKnownAs'] = array( $id );
3031
return $actor;

0 commit comments

Comments
 (0)