Des rightly pointed out that when listing Micro.blog accounts in the webmention directory the entries only point to Micro.blog itself and not the user profile.

Having originally excluded these links I hadn't taken them into account when getting the value for the author url - an oversight on my part.

As such we need to apply a little logic:

if ( $parse['host'] == 'micro.blog' ) {
    $host = substr( $author_url, 0, strrpos( $author_url, '/' ));
}

This gives us the content of the url prior to the last slash which should equate to the account address.

This would need to be inserted within the following 'if' statement as below:

if ( $check != 'yes' ) {

    if ( $parse['host'] == 'micro.blog' ) {
        $host = substr( $author_url, 0, strrpos( $author_url, '/' ));
    }

    //existing code below

    $people[$count] = $author;
    ...

}
  1. johnjohnston says: #
    made the change on my install, worked nicely. Thanks. Presume it will get into GitHub version at some point.