forked from MarseyWorld/MarseyWorld
dfs
parent
89b49f9337
commit
4a782549c8
|
@ -673,7 +673,7 @@ def messagereply(v):
|
|||
|
||||
body_html = sanitize(message)
|
||||
|
||||
if v.admin_level > 1 and request.files.get("file") and request.headers.get("cf-ipcountry") != "T1":
|
||||
if parent.sentto == 2 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'
|
||||
|
|
Loading…
Reference in New Issue