From 435501449213958b41d3dbeeacafb4f534aef374 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 17 May 2018 23:47:15 +0000 Subject: [PATCH] Now it should work ... --- src/Model/PushSubscriber.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Model/PushSubscriber.php b/src/Model/PushSubscriber.php index e982c14442..76a7e06312 100644 --- a/src/Model/PushSubscriber.php +++ b/src/Model/PushSubscriber.php @@ -14,7 +14,7 @@ class PushSubscriber /** * @param string $priority Priority for push workers */ - public static function publishFeed($priority = PRIORITY_HIGH) + public static function publishFeed($default_priority = PRIORITY_HIGH) { // We'll push to each subscriber that has push > 0, // i.e. there has been an update (set in notifier.php). @@ -24,7 +24,10 @@ class PushSubscriber // We always handle retries with low priority if ($subscriber["push"] > 1) { $priority = PRIORITY_LOW; + } else { + $priority = $default_priority; } + logger("Publish feed to " . $subscriber["callback_url"] . " with priority " . $priority, LOGGER_DEBUG); Worker::add($priority, 'PubSubPublish', (int)$subscriber["id"]); } -- 2.39.5