more autoexpand iterations fixes

This commit is contained in:
Mario
2025-06-10 09:06:48 +00:00
parent d3d8c088f3
commit d36f806ece
2 changed files with 4 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ require_once('include/security.php');
define('PLATFORM_NAME', 'hubzilla');
define('STD_VERSION', '10.3.66');
define('STD_VERSION', '10.3.67');
define('ZOT_REVISION', '6.0');
define('DB_UPDATE_VERSION', 1263);

View File

@@ -223,6 +223,8 @@ $(document).ready(function() {
const wrapper = document.getElementById('thread-wrapper-' + id);
const parent = wrapper.closest('.generic-content-wrapper');
subWrapper.innerHTML = '';
parent.querySelectorAll('.thread-wrapper.wall-item-expanded').forEach(el => {
el.classList.remove('wall-item-expanded', 'shadow');
});
@@ -1691,7 +1693,7 @@ const autoExpand = (function () {
await new Promise(res => setTimeout(res, 700));
}
} while (newButtonsFound && iteration <= maxIterations);
} while (newButtonsFound && iteration < maxIterations);
console.log('Replies loaded!');