]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/PubSubPublish.php
Make the user.legacy_password field boolean
[friendica.git] / src / Worker / PubSubPublish.php
index e2ecedbdf0f0189c4b25a432405c4e5c9f32fca6..2656cef24b7af5b07adfcd97a5873537b445e6c5 100644 (file)
@@ -26,7 +26,7 @@ class PubSubPublish {
 
                        foreach ($r as $rr) {
                                logger("Publish feed to ".$rr["callback_url"], LOGGER_DEBUG);
-                               Worker::add(array('priority' => PRIORITY_HIGH, 'created' => $a->queue['created'], 'dont_fork' => true),
+                               Worker::add(['priority' => PRIORITY_HIGH, 'created' => $a->queue['created'], 'dont_fork' => true],
                                                'PubSubPublish', (int)$rr["id"]);
                        }
                }
@@ -52,7 +52,7 @@ class PubSubPublish {
                logger("Generate feed of user ".$rr['nickname']." to ".$rr['callback_url']." - last updated ".$rr['last_update'], LOGGER_DEBUG);
 
                $last_update = $rr['last_update'];
-               $params = OStatus::feed($a, $rr['nickname'], $last_update);
+               $params = OStatus::feed($rr['nickname'], $last_update);
 
                if (!$params) {
                        return;
@@ -60,11 +60,11 @@ class PubSubPublish {
 
                $hmac_sig = hash_hmac("sha1", $params, $rr['secret']);
 
-               $headers = array("Content-type: application/atom+xml",
+               $headers = ["Content-type: application/atom+xml",
                                sprintf("Link: <%s>;rel=hub,<%s>;rel=self",
                                        System::baseUrl().'/pubsubhubbub/'.$rr['nickname'],
                                        $rr['topic']),
-                               "X-Hub-Signature: sha1=".$hmac_sig);
+                               "X-Hub-Signature: sha1=".$hmac_sig];
 
                logger('POST '.print_r($headers, true)."\n".$params, LOGGER_DEBUG);