From 4644e62c99657ce82b1050ac9ccee8b175d16d6f Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 14 Mar 2023 10:11:45 +0200 Subject: [PATCH] fix last commit --- files/helpers/media.py | 2 +- files/helpers/sanitize.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index caa4319ec..6927bc640 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -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): diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 0f502af61..537f729d3 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -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\>\2', 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)