fixed 500 error

remotes/1693045480750635534/spooky-22
Aevann1 2022-06-27 04:22:12 +02:00
parent 6ff420e338
commit 46c9c719d0
1 changed files with 3 additions and 3 deletions

View File

@ -215,9 +215,9 @@ def sanitize(sanitized, edit=False):
tag['alt'] = f'![]({tag["data-src"]})'
tag['referrerpolicy'] = "no-referrer"
a = soup.new_tag("a", href=tag["data-src"], rel="nofollow noopener noreferrer")
tag = tag.replace_with(a)
a.append(tag)
a = soup.new_tag("a", href=tag["data-src"], rel="nofollow noopener noreferrer")
tag = tag.replace_with(a)
a.append(tag)
for tag in soup.find_all("a"):
if tag.get("href") and fishylinks_regex.fullmatch(str(tag.string)):