Don't post status if content is blank

This commit is contained in:
Socks 2018-04-02 17:00:40 +01:00
parent 959ce8db77
commit 5a3fb52380

View file

@ -8,6 +8,9 @@ timeline_db = db.statuses
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()
account_object = accounts_db.find_one({'username': username.lower()})
accounts_mentioned = []