From da806fbf4d40fea92fb42a1c9b6356fa647bf871 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 6 Mar 2023 18:58:27 +0200 Subject: [PATCH] fix cutoff --- files/helpers/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index 0abf00448..e5a33eb6e 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -217,7 +217,7 @@ def process_image(filename:str, v, resize=0, trim=False, uploader_id:Optional[in if i_hash in hashes.keys(): os.remove(filename) if has_request: - abort(409, "Image already exists! " + hashes[i_hash].replace('files', SITE_FULL)) + abort(409, "Image already exists! " + hashes[i_hash].split('/')[-1]) return None db = db or g.db