aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-04 11:33:16 +0000
committerMario <mario@mariovavti.com>2019-11-04 13:04:28 +0100
commit02fd7e51ffeee490760877f2a4f94d9bc8417f69 (patch)
treeb31e5adcdbd845b22fb6656f7e246ffe88db71d5 /Zotlabs/Lib
parent64c6e25896bc5b8f899abdad4e52a9fe6c88a66c (diff)
downloadvolse-hubzilla-02fd7e51ffeee490760877f2a4f94d9bc8417f69.tar.gz
volse-hubzilla-02fd7e51ffeee490760877f2a4f94d9bc8417f69.tar.bz2
volse-hubzilla-02fd7e51ffeee490760877f2a4f94d9bc8417f69.zip
add date and request target headers to make pixelfed happy
(cherry picked from commit 3604220c2a5aedddf25143cc5fd87ed576d34702)
Diffstat (limited to 'Zotlabs/Lib')
-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;