diff --git a/Code/Lib/Activity.php b/Code/Lib/Activity.php index 4959c4bcc..95b8143b6 100644 --- a/Code/Lib/Activity.php +++ b/Code/Lib/Activity.php @@ -150,7 +150,7 @@ class Activity logger('fetch_actual: ' . $url, LOGGER_DEBUG); - $default_accept_header = 'application/activity+json, application/x-zot-activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"'; + $default_accept_header = 'application/activity+json, application/ld+json, application/x-zot-activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"'; if ($channel) { $accept_header = PConfig::Get($channel['channel_id'],'system','accept_header'); @@ -158,6 +158,7 @@ class Activity if (!$accept_header) { $accept_header = Config::Get('system', 'accept_header', $default_accept_header); } + $headers = [ 'Accept' => $accept_header, 'Host' => $parsed['host'], diff --git a/Code/Lib/Channel.php b/Code/Lib/Channel.php index 17631c4eb..2bb6b5c79 100644 --- a/Code/Lib/Channel.php +++ b/Code/Lib/Channel.php @@ -2587,7 +2587,7 @@ class Channel } if ($channel['channel_address'] === App::get_hostname() || intval($channel['channel_system'])) { - return z_root() . '?operation=rsakey'; + return z_root() . '?operation=rsakey'; } return (($channel) ? z_root() . '/channel/' . $channel['channel_address'] : z_root()) . '?operation=rsakey';