#NEWLINE# @ base . require_user #NEWLINE# def post( self , exploration_id ) : #NEWLINE# #INDENT# subject = self . payload . get ( 'subject' ) #NEWLINE# if ( not subject ) : #NEWLINE# #INDENT# raise self . InvalidInputException ( 'A thread subject must be specified.' ) #NEWLINE# #UNINDENT# text = self . payload . get ( 'text' ) #NEWLINE# if ( not text ) : #NEWLINE# #INDENT# raise self . InvalidInputException ( 'Text for the first message in the thread must be specified.' ) #NEWLINE# #UNINDENT# feedback_services . create_thread ( exploration_id , self . payload . get ( 'state_name' ) , self . user_id , subject , text ) #NEWLINE# self . render_json ( self . values )