This commit is contained in:
Aevann1 2022-04-24 00:09:25 +02:00
parent ade23c48c5
commit a7e911e56d
6 changed files with 3 additions and 7 deletions

View file

@ -673,7 +673,7 @@ def messagereply(v):
body_html = sanitize(message)
if request.files.get("file") and request.headers.get("cf-ipcountry") != "T1":
if v.admin_level > 1 and request.files.get("file") and request.headers.get("cf-ipcountry") != "T1":
file=request.files["file"]
if file.content_type.startswith('image/'):
name = f'/images/{time.time()}'.replace('.','') + '.webp'