same as last commit

master
Aevann 2023-06-26 21:02:15 +03:00
parent f3276b8c4e
commit af0c8a702b
1 changed files with 3 additions and 0 deletions

View File

@ -1864,6 +1864,9 @@ def delete_media_post(v):
path = url.split(SITE)[1] path = url.split(SITE)[1]
if path.startswith('/1'):
path = '/videos' + path
if not os.path.isfile(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!") return render_template("admin/delete_media.html", v=v, url=url, error="File not found on the server!")