diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index a4bcdb50c2..62bf6c4ff3 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -159,7 +159,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False): tag["data-src"] = tag["src"] tag["src"] = "/static/assets/images/loading.webp" tag['alt'] = f'![]({tag["data-src"]})' - tag["onclick"] = f"expandDesktopImage(this.dataset.src);" + tag["onclick"] = f"expandDesktopImage(this.src);" tag["data-bs-toggle"] = "modal" tag["data-bs-target"] = "#expandImageModal" diff --git a/files/templates/comments.html b/files/templates/comments.html index 89193ced2e..3d99212896 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -848,7 +848,7 @@ {% if v %} - + {% endif %}