|
|
|
@ -71,6 +71,7 @@ class DiscussesService
|
|
|
|
|
begin
|
|
|
|
|
base_dicuss params[:id]
|
|
|
|
|
hidden = current_user.admin? ? false : true
|
|
|
|
|
Rails.logger.info("############hidden: #{hidden}")
|
|
|
|
|
discuss = Discuss.create!(:content => params[:content].gsub(" \;", "").strip, :user_id => current_user.id, :parent_id => params[:id],
|
|
|
|
|
:root_id => @discuss.root_id || params[:id], :praise_count => 0, :challenge_id => @discuss.challenge_id, :hidden => hidden,
|
|
|
|
|
:dis_id => @discuss.dis_id, :dis_type => @discuss.dis_type, :position => @discuss.position)
|
|
|
|
|