]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/PubSubPublish.php
Add suggestions
[friendica.git] / src / Worker / PubSubPublish.php
index eab68b43041e26d4d30eef6270b6d8d96d011ffe..a3e2ee4ad09130d8961ac68e114374e998d09192 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -59,11 +59,12 @@ class PubSubPublish
 
                $hmac_sig = hash_hmac("sha1", $params, $subscriber['secret']);
 
-               $headers = ["Content-type: application/atom+xml",
-                               sprintf("Link: <%s>;rel=hub,<%s>;rel=self",
+               $headers = [
+                       'Content-type' => 'application/atom+xml',
+                       'Link' => sprintf("<%s>;rel=hub,<%s>;rel=self",
                                        DI::baseUrl() . '/pubsubhubbub/' . $subscriber['nickname'],
                                        $subscriber['topic']),
-                               "X-Hub-Signature: sha1=" . $hmac_sig];
+                       'X-Hub-Signature' => 'sha1=' . $hmac_sig];
 
                Logger::log('POST ' . print_r($headers, true) . "\n" . $params, Logger::DATA);