fix last commit

master
Aevann 2023-03-14 10:11:45 +02:00
parent 74e7464f54
commit 4644e62c99
2 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ def process_image(filename:str, v, resize=0, trim=False, uploader_id:Optional[in
db.add(media)
if IS_LOCALHOST: return f'![]({filename})'
return f'https://i.{SITE}{filename}'
return f'https://i.{SITE}{filename} '
def process_dm_images(v, user, body):

View File

@ -354,7 +354,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys
sanitized = linefeeds_regex.sub(r'\1\n\n\2', sanitized)
sanitized = greentext_regex.sub(r'\1<g>\>\2</g>', sanitized)
sanitized = image_regex.sub(r'\1![](\2) \7', sanitized)
sanitized = image_regex.sub(r'\1![](\2)\7', sanitized)
sanitized = image_check_regex.sub(r'\1', sanitized)
sanitized = link_fix_regex.sub(r'\1https://\2', sanitized)