master
Aevann1 2022-01-14 12:45:30 +02:00
parent 56cdc7b3c5
commit 83498cc60d
1 changed files with 1 additions and 1 deletions

View File

@ -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.data-src);"
tag["onclick"] = f"expandDesktopImage(this.dataset.src);"
tag["data-bs-toggle"] = "modal"
tag["data-bs-target"] = "#expandImageModal"