]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Notifier.php
Merge pull request #5139 from rabuzarus/20180527_-_frio_tos_background
[friendica.git] / src / Worker / Notifier.php
index f7b7aeae14c44d5b1681bbebbcd12c1f3ab92b07..11a6f6f68a6a2d90bc5978a748b08fc0530c91a1 100644 (file)
@@ -499,15 +499,10 @@ class Notifier {
 
                // Notify PuSH subscribers (Used for OStatus distribution of regular posts)
                if ($push_notify) {
-                       // 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, 'next_try' => NULL_DATE], $condition);
-
                        logger('Activating internal PuSH for item '.$item_id, LOGGER_DEBUG);
 
                        // Handling the pubsubhubbub requests
-                       PushSubscriber::publishFeed($a->queue['priority']);
+                       PushSubscriber::publishFeed($owner['uid'], $a->queue['priority']);
                }
 
                logger('notifier: calling hooks for ' . $cmd . ' ' . $item_id, LOGGER_DEBUG);