aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--boot.php2
-rw-r--r--view/js/main.js8
2 files changed, 7 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index e44c21521..68ad38059 100644
--- a/boot.php
+++ b/boot.php
@@ -70,7 +70,7 @@ require_once('include/security.php');
define('PLATFORM_NAME', 'hubzilla');
-define('STD_VERSION', '10.3.73');
+define('STD_VERSION', '10.3.74');
define('ZOT_REVISION', '6.0');
define('DB_UPDATE_VERSION', 1263);
diff --git a/view/js/main.js b/view/js/main.js
index 6e7e2a42f..5bf7234aa 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -901,10 +901,14 @@ function updateConvItems(mode, data) {
document.documentElement.style.setProperty('--hz-item-highlight', stringToHslColor(JSON.parse(elem.parentNode.parentNode.dataset.b64mids)[0]));
}
+ let elemSubThreadWrapper = elem.querySelector('.wall-item-sub-thread-wrapper');
+ let elemCommentButton = elem.querySelector('.wall-item-comment');
+
// Set the button and sub-thread-wrapper state
- if (elem.parentNode.parentNode.querySelector('.wall-item-comment')) {
- elem.parentNode.parentNode.querySelector('.wall-item-comment').classList.add('expanded');
+ if (elemCommentButton && elemSubThreadWrapper.children.length) {
+ elemCommentButton.classList.add('expanded');
}
+
elem.parentNode.classList.add('item-expanded');
}