]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Notifier.php
Fix to OStatus delivery to be not so blocking to other tasks
[friendica.git] / src / Worker / Notifier.php
index e22e8a1cd1b9521609f118bb79e93521ad31718d..f8b37c2f9090ceabda6c397094fd05a7c4661b83 100644 (file)
@@ -501,12 +501,12 @@ class Notifier {
                        // Set push flag for PuSH subscribers to this topic,
                        // they will be notified in queue.php
                        $condition = ['push' => false, 'nickname' => $owner['nickname']];
-                       dba::update('push_subscriber', ['push' => true], $condition);
+                       dba::update('push_subscriber', ['push' => true, 'next_try' => NULL_DATE], $condition);
 
                        logger('Activating internal PuSH for item '.$item_id, LOGGER_DEBUG);
 
                        // Handling the pubsubhubbub requests
-                       Worker::add(['priority' => PRIORITY_HIGH, 'created' => $a->queue['created'], 'dont_fork' => true],
+                       Worker::add(['priority' => $a->queue['priority'], 'created' => $a->queue['created'], 'dont_fork' => true],
                                        'PubSubPublish');
                }