]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Relocate.php
Rename Repository\Notify->NotifyOnDesktop to shouldShowOnDesktop
[friendica.git] / src / Console / Relocate.php
index c0054d3963299502a8adcc29d11f3f32698114a1..729bee392f4ea5bd33ec651989ac6a78868fb887 100644 (file)
@@ -74,7 +74,7 @@ HELP;
                $this->config   = $config;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if (count($this->args) == 0) {
                        $this->out($this->getHelp());
@@ -197,7 +197,7 @@ HELP;
                $this->out('Schedule relocation messages to remote Friendica and Diaspora hosts');
                $users = $this->database->selectToArray('user', ['uid'], ['account_removed' => false, 'account_expired' => false]);
                foreach ($users as $user) {
-                       Worker::add(PRIORITY_HIGH, 'Notifier', Delivery::RELOCATION, $user['uid']);
+                       Worker::add(Worker::PRIORITY_HIGH, 'Notifier', Delivery::RELOCATION, $user['uid']);
                }
 
                return 0;