fix cutoff

pull/138/head
Aevann 2023-03-06 18:58:27 +02:00
parent 050824b96f
commit da806fbf4d
1 changed files with 1 additions and 1 deletions

View File

@ -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