Skip to content

Commit 6265f66

Browse files
authored
also support application/ld+json mime-type with AP profile (#696)
1 parent fadd198 commit 6265f66

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

includes/class-webfinger.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ public static function resolve( $uri ) {
5353
foreach ( $data['links'] as $link ) {
5454
if (
5555
'self' === $link['rel'] &&
56-
'application/activity+json' === $link['type']
56+
(
57+
'application/activity+json' === $link['type'] ||
58+
'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' === $link['type']
59+
)
5760
) {
5861
return $link['href'];
5962
}

0 commit comments

Comments
 (0)