This commit is contained in:
Alex Kirk 2022-11-09 07:17:59 -07:00
parent 5f6cf78da1
commit 04db99730d

View file

@ -153,7 +153,7 @@ class Webfinger {
} }
foreach ( $body['links'] as $link ) { foreach ( $body['links'] as $link ) {
if ( $link['rel'] === 'self' && $link['type'] == 'application/activity+json' ) { if ( 'self' === $link['rel'] && 'application/activity+json' === $link['type'] ) {
return $link['href']; return $link['href'];
} }
} }