aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-12-25 20:53:32 +0000
committerMario <mario@mariovavti.com>2024-12-25 20:53:32 +0000
commit45a78dcbc01d0a5b6a3143ef92e3a2f334c283af (patch)
tree4076a05ee7c43826eb0f52d52cdd228bbafdc730 /Zotlabs
parentc9ebb23b695fa717c72b0d8d4c98f4e26259765a (diff)
downloadvolse-hubzilla-45a78dcbc01d0a5b6a3143ef92e3a2f334c283af.tar.gz
volse-hubzilla-45a78dcbc01d0a5b6a3143ef92e3a2f334c283af.tar.bz2
volse-hubzilla-45a78dcbc01d0a5b6a3143ef92e3a2f334c283af.zip
this should fix the infinite loop caused by a regression in Daemon/Expire
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Daemon/Cron_daily.php2
-rw-r--r--Zotlabs/Daemon/Expire.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Daemon/Cron_daily.php b/Zotlabs/Daemon/Cron_daily.php
index debc5571e..3bc267f08 100644
--- a/Zotlabs/Daemon/Cron_daily.php
+++ b/Zotlabs/Daemon/Cron_daily.php
@@ -95,7 +95,7 @@ class Cron_daily {
// expire any expired accounts
downgrade_accounts();
- // Master::Summon(array('Expire'));
+ Master::Summon(array('Expire'));
Master::Summon(array('Cli_suggest'));
remove_obsolete_hublocs();
diff --git a/Zotlabs/Daemon/Expire.php b/Zotlabs/Daemon/Expire.php
index 3ac3dee3a..dae585578 100644
--- a/Zotlabs/Daemon/Expire.php
+++ b/Zotlabs/Daemon/Expire.php
@@ -23,13 +23,13 @@ class Expire {
// perform final cleanup on previously delete items
- $r = q("select id from item where item_deleted = 1 and item_pending_remove = 0 and changed < %s - INTERVAL %s",
+ $r = q("select id, uid from item where item_deleted = 1 and item_pending_remove = 0 and changed < %s - INTERVAL %s",
db_utcnow(),
db_quoteinterval('10 DAY')
);
if ($r) {
foreach ($r as $rr) {
- drop_item($rr['id'], DROPITEM_PHASE2);
+ drop_item($rr['id'], DROPITEM_PHASE2, uid: $rr['uid']);
}
}