@username_required<EOL>def start_thread():
subject = request.form.get('<STR_LIT>') or '<STR_LIT>'<EOL>comment = request.form.get('<STR_LIT>') or '<STR_LIT>'<EOL>if not subject:<EOL><INDENT>return error('<STR_LIT>')<EOL><DEDENT>storage.start_thread(g.username, subject, comment)<EOL>flash('<STR_LIT>'.format(subject), '<STR_LIT:success>')<EOL>return to_threads()<EOL>
Start new thread with or without first comment.