]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #6116 from annando/remove-user
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 12 Nov 2018 05:11:51 +0000 (00:11 -0500)
committerGitHub <noreply@github.com>
Mon, 12 Nov 2018 05:11:51 +0000 (00:11 -0500)
Avoid a blocked workerqueue due to removed users

src/Worker/RemoveUser.php

index d8966e5a491f661c10bf536e799c60dd206f4b53..10ede55763d47ea2071866fdd6de59acac32239a 100644 (file)
@@ -24,7 +24,7 @@ class RemoveUser {
                do {
                        $items = Item::select(['id'], $condition, ['limit' => 100]);
                        while ($item = Item::fetch($items)) {
-                               Item::deleteById($item['id'], PRIORITY_LOW);
+                               Item::deleteById($item['id'], PRIORITY_NEGLIGIBLE);
                        }
                        DBA::close($items);
                } while (Item::exists($condition));