mirror of
https://github.com/friendica/friendica
synced 2025-04-30 05:04:22 +02:00
Fix to OStatus delivery to be not so blocking to other tasks
This commit is contained in:
parent
ac67f3c154
commit
5a1e1c1ec9
5 changed files with 52 additions and 39 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue