aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-12-26 08:03:26 +0000
committerMario <mario@mariovavti.com>2024-12-26 08:03:26 +0000
commit2a00bd9a282b4b8721a5cc5dc8ae824f502d0415 (patch)
treeb34c9a4e93bfc5fc79299754132e8b5ee941e973
parent5813b65aedf6c1d523344a44221f43c9539c3fca (diff)
parent553b3f6faa8a1c6711aeee97a810140bcdb0d70e (diff)
downloadvolse-hubzilla-2a00bd9a282b4b8721a5cc5dc8ae824f502d0415.tar.gz
volse-hubzilla-2a00bd9a282b4b8721a5cc5dc8ae824f502d0415.tar.bz2
volse-hubzilla-2a00bd9a282b4b8721a5cc5dc8ae824f502d0415.zip
Merge branch 'dev'
-rw-r--r--CHANGELOG11
-rw-r--r--Zotlabs/Daemon/Channel_purge.php2
-rw-r--r--Zotlabs/Daemon/Cron_daily.php2
-rw-r--r--Zotlabs/Daemon/Expire.php4
-rw-r--r--boot.php2
-rw-r--r--include/items.php4
6 files changed, 18 insertions, 7 deletions
diff --git a/CHANGELOG b/CHANGELOG
index d59c1fa31..08f4751b3 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,14 @@
+Hubzilla 10.0.3 (2024-12-26)
+ - Fix regression in Daemon/Channel_purge which could cause a possible infinite loop
+ - Fix regression in Daemon/Expire which could cause a infinite loop
+
+
+Hubzilla 10.0.2 (2024-12-25)
+ - Hotfix comment out Daemon/Expire
+ - Fix zid parameter allowed to override an existing remote login
+ - Slightly improved imagesLoaded()
+
+
Hubzilla 10.0.1 (2024-12-22)
- Revert removing of openid library
- Fix SQL query in Daemon/Importdoc
diff --git a/Zotlabs/Daemon/Channel_purge.php b/Zotlabs/Daemon/Channel_purge.php
index d25edf8ba..bb4fc3866 100644
--- a/Zotlabs/Daemon/Channel_purge.php
+++ b/Zotlabs/Daemon/Channel_purge.php
@@ -24,7 +24,7 @@ class Channel_purge {
);
if ($r) {
foreach ($r as $rv) {
- drop_item($rv['id']);
+ drop_item($rv['id'], $channel_id);
}
}
} while ($r);
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']);
}
}
diff --git a/boot.php b/boot.php
index 224c416b5..6ff5ec6bd 100644
--- a/boot.php
+++ b/boot.php
@@ -66,7 +66,7 @@ require_once('include/security.php');
define('PLATFORM_NAME', 'hubzilla');
-define('STD_VERSION', '10.0.2');
+define('STD_VERSION', '10.1.9');
define('ZOT_REVISION', '6.0');
define('DB_UPDATE_VERSION', 1263);
diff --git a/include/items.php b/include/items.php
index 84e1e9aee..965c816c4 100644
--- a/include/items.php
+++ b/include/items.php
@@ -3861,7 +3861,7 @@ function item_expire($uid,$days,$comment_days = 7) {
if ($r) {
foreach ($r as $item) {
- drop_item($item['id'], expire: true);
+ drop_item($item['id'], uid: $uid);
}
}
@@ -3922,7 +3922,7 @@ function drop_item($id, $stage = DROPITEM_NORMAL, $force = false, $uid = 0, $obs
$ok_to_delete = true;
}
- // remote delete when nobody is authenticated (called from Libzot)
+ // remote delete when nobody is authenticated (called from Libzot and Daemons)
if ($uid && intval($uid) === intval($item['uid'])) {
$ok_to_delete = true;
}