https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
633d040
)
Lower priority for removing item
author
Michael
<heluecht@pirati.ca>
Sun, 3 Feb 2019 23:59:16 +0000
(23:59 +0000)
committer
Michael
<heluecht@pirati.ca>
Sun, 3 Feb 2019 23:59:16 +0000
(23:59 +0000)
src/Worker/RemoveContact.php
patch
|
blob
|
history
diff --git
a/src/Worker/RemoveContact.php
b/src/Worker/RemoveContact.php
index
00027dc
..
08c7c23
100644
(file)
--- a/
src/Worker/RemoveContact.php
+++ b/
src/Worker/RemoveContact.php
@@
-24,7
+24,7
@@
class RemoveContact {
do {
$items = Item::select(['id'], $condition, ['limit' => 100]);
while ($item = Item::fetch($items)) {
-
DBA::delete('item', ['id' => $item['id']]
);
+
Item::deleteById($item['id'], PRIORITY_NEGLIGIBLE
);
}
DBA::close($items);
} while (Item::exists($condition));