diff --git a/includes/class-activitypub.php b/includes/class-activitypub.php index ae178d3..72cea52 100644 --- a/includes/class-activitypub.php +++ b/includes/class-activitypub.php @@ -226,8 +226,8 @@ class Activitypub { 'top' ); \add_rewrite_rule( - '^@([\w]+)', - 'index.php?rest_route=/' . ACTIVITYPUB_REST_NAMESPACE . '/users/$matches[1]', + '^@([\w\-\.]+)', + 'index.php?rest_route=/' . ACTIVITYPUB_REST_NAMESPACE . '/users/$matches[1]&redirect=true', 'top' ); }