Fix to OStatus delivery to be not so blocking to other tasks

This commit is contained in:
Michael 2018-05-17 22:17:03 +00:00
parent ac67f3c154
commit 5a1e1c1ec9
5 changed files with 52 additions and 39 deletions

View 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');
}