aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-05-06 06:45:58 +0000
committerMario <mario@mariovavti.com>2025-05-06 06:45:58 +0000
commita00db63b3ef461ffcbbe0656d5a4980718548025 (patch)
tree252bb5d672bf760b2826fb4991a12a2f13e00d6e
parent1d60d38cdca30489d0b9b6fa63be026ba67b0e16 (diff)
downloadvolse-hubzilla-a00db63b3ef461ffcbbe0656d5a4980718548025.tar.gz
volse-hubzilla-a00db63b3ef461ffcbbe0656d5a4980718548025.tar.bz2
volse-hubzilla-a00db63b3ef461ffcbbe0656d5a4980718548025.zip
imagesLoaded() can deal with strings
-rw-r--r--view/js/main.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 934596cd1..dac947e7a 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -1307,10 +1307,7 @@ function request(id, mid, verb, parent, uuid) {
fetch('/request?verb=' + verb + '&mid=' + mid + '&parent=' + parent + '&module=' + module)
.then(response => response.json())
.then(obj => {
- let parser = new DOMParser();
- let doc = parser.parseFromString(obj.html, 'text/html');
-
- imagesLoaded(doc.querySelectorAll('.wall-item-body img'), function () {
+ imagesLoaded(obj.html, function () {
injectWithAnimation('wall-item-sub-thread-wrapper-' + id, obj.html);
updateRelativeTime('.autotime');
loading.style.display = 'none';