Skip to content

Commit af9a971

Browse files
authored
Merge pull request #58 from OpenSourceOrg/add/activitypub-migration
remove blog path from author page
2 parents 6fe1028 + 9de5552 commit af9a971

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)