From af0c8a702b154260749b301f3ee9487c39531003 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 26 Jun 2023 21:02:15 +0300 Subject: [PATCH] same as last commit --- files/routes/admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/admin.py b/files/routes/admin.py index 8af739267..fe7f43758 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1864,6 +1864,9 @@ def delete_media_post(v): path = url.split(SITE)[1] + if path.startswith('/1'): + path = '/videos' + path + if not os.path.isfile(path): return render_template("admin/delete_media.html", v=v, url=url, error="File not found on the server!")