]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Cron.php
Superfluous todo removed
[friendica.git] / src / Worker / Cron.php
index e39ba24aae1cc71ca8754f2c9747ca9d5f9fc1f0..30efc61dba8144f1ec6daade4a3dd96c7d771e05 100644 (file)
@@ -27,6 +27,7 @@ use Friendica\Core\Worker;
 use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Model\Tag;
+use Friendica\Protocol\Relay;
 
 class Cron
 {
@@ -95,9 +96,6 @@ class Cron
                        // Clear cache entries
                        Worker::add(PRIORITY_LOW, 'ClearCache');
 
-                       // Requeue posts from the post delivery entries
-                       Worker::add(PRIORITY_MEDIUM, 'RequeuePosts');
-
                        DI::config()->set('system', 'last_cron_hourly', time());
                }
 
@@ -128,6 +126,9 @@ class Cron
                        }
        
                        DI::config()->set('system', 'last_cron_daily', time());
+
+                       // Resubscribe to relay servers
+                       Relay::reSubscribe();
                }
 
                Logger::notice('end');