Don't post status if content is blank
This commit is contained in:
parent
959ce8db77
commit
5a3fb52380
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,9 @@ timeline_db = db.statuses
|
||||||
|
|
||||||
|
|
||||||
def post_status(username, content, private=False, replyTo=False, location=False):
|
def post_status(username, content, private=False, replyTo=False, location=False):
|
||||||
|
if not content: # Don't let people post blank posts
|
||||||
|
return
|
||||||
|
|
||||||
currentTimeDate = datetime.datetime.now()
|
currentTimeDate = datetime.datetime.now()
|
||||||
account_object = accounts_db.find_one({'username': username.lower()})
|
account_object = accounts_db.find_one({'username': username.lower()})
|
||||||
accounts_mentioned = []
|
accounts_mentioned = []
|
||||||
|
|
Loading…
Add table
Reference in a new issue