From 55ca69fd227753325c5e7c35fb329b18026a864d Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Sun, 29 Sep 2019 18:23:22 +0200 Subject: [PATCH] add all required accept header --- includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 224f4ff..d7a2264 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -112,7 +112,9 @@ function get_remote_metadata_by_actor( $actor ) { 'limit_response_size' => 1048576, 'redirection' => 3, 'user-agent' => "$user_agent; ActivityPub", - 'headers' => array( 'accept' => 'application/activity+json' ), + 'headers' => array( + 'accept' => 'application/activity+json, application/ld+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"', + ), ); $response = \wp_safe_remote_get( $actor, $args );