Skip to content

Commit 55ca69f

Browse files
committed
add all required accept header
1 parent 0337b78 commit 55ca69f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

includes/functions.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ function get_remote_metadata_by_actor( $actor ) {
112112
'limit_response_size' => 1048576,
113113
'redirection' => 3,
114114
'user-agent' => "$user_agent; ActivityPub",
115-
'headers' => array( 'accept' => 'application/activity+json' ),
115+
'headers' => array(
116+
'accept' => 'application/activity+json, application/ld+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
117+
),
116118
);
117119

118120
$response = \wp_safe_remote_get( $actor, $args );

0 commit comments

Comments
 (0)