checkforrequired
This commit is contained in:
parent
7e614035f7
commit
807998a125
2 changed files with 6 additions and 11 deletions
|
@ -959,7 +959,7 @@ def submit_post(v, sub=None):
|
|||
else: embed = None
|
||||
else: embed = None
|
||||
|
||||
if not url and not request.values.get("body") and not request.files.get("file", None):
|
||||
if not url and not request.values.get("body") and not request.files.get("file") and not request.files.get("file2"):
|
||||
return error("Please enter a url or some text.")
|
||||
|
||||
if not title:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue