forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-11-06 20:10:57 +02:00
parent 58a998e7ec
commit 5790430f78
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ def sanitize(sanitized, noimages=False):
link = soup.new_tag("a")
link["href"] = tag["data-src"]
if tag.get("href") and site not in tag["href"] and not tag["href"].startswith('/'): link["rel"] = "nofollow noopener noreferrer"
if site not in link["href"] and not link["href"].startswith('/'): link["rel"] = "nofollow noopener noreferrer"
link["target"] = "_blank"
link["onclick"] = f"expandDesktopImage('{tag['data-src']}');"
link["data-bs-toggle"] = "modal"