diff options
-rw-r--r-- | view/js/main.js | 5 |
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'; |