This commit is contained in:
Alex Kirk 2022-12-11 09:16:50 +01:00
parent 58c19de374
commit 7e6fbd60b3

View file

@ -111,7 +111,7 @@ function get_remote_metadata_by_actor( $actor ) {
return $pre; return $pre;
} }
if ( preg_match( '/^@?[^@]+@((?:[a-z0-9-]+\.)+[a-z]+)$/i', $actor ) ) { if ( preg_match( '/^@?[^@]+@((?:[a-z0-9-]+\.)+[a-z]+)$/i', $actor ) ) {
$actor = \Acivitypub\Webfinger::resolve( $actor ); $actor = \Activitypub\Webfinger::resolve( $actor );
} }
if ( ! $actor ) { if ( ! $actor ) {