aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2019-11-06 04:11:12 +0100
committerM. Dent <dentm42@gmail.com>2019-11-06 04:11:12 +0100
commitb7db9944ec43aee8d72835e79730ad49c86a678a (patch)
tree8b593d7628027850fb8f2ad19cb92a3dc4d05657 /Zotlabs
parent86f7d084834dc006411d788c5f161376b4209df7 (diff)
parent02fd7e51ffeee490760877f2a4f94d9bc8417f69 (diff)
downloadvolse-hubzilla-b7db9944ec43aee8d72835e79730ad49c86a678a.tar.gz
volse-hubzilla-b7db9944ec43aee8d72835e79730ad49c86a678a.tar.bz2
volse-hubzilla-b7db9944ec43aee8d72835e79730ad49c86a678a.zip
Merge branch 'cherry-pick-3604220c' into 'dev'
add date and request target headers to make pixelfed happy See merge request hubzilla/core!1768
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Activity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 844127ee3..5bad73123 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -87,8 +87,8 @@ class Activity {
$headers = [
'Accept' => 'application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
'Host' => $m['host'],
- '(request-target)' => 'get ' . get_request_string($url),
- 'Date' => datetime_convert('UTC','UTC','now','D, d M Y H:i:s') . ' UTC'
+ 'Date' => datetime_convert('UTC','UTC', 'now', 'D, d M Y h:i:s \\G\\M\\T'),
+ '(request-target)' => 'get ' . get_request_string($url)
];
if (isset($token)) {
$headers['Authorization'] = 'Bearer ' . $token;