From 96163b17bbf78ed73e2ea4a187bd76d350fe3de0 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 19 Jun 2022 19:31:59 +0200 Subject: [PATCH] fix bug that made ppl unable to post images --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 8ef074084..bc0c72ef0 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -875,7 +875,7 @@ def submit_post(v, sub=None): embed = str(int(id)) - if not url and not request.values.get("body") and not request.files.get("file") and not request.files.get("file2"): + if not url and not request.values.get("body") and not request.files.get("file") and not request.files.get("file-url"): return error("Please enter a url or some text.") if not title: