Newer
Older
# licensed under the Affero General Public License version 3 or later. See
Daniel Vincent Grippi
a validé
before_filter :authenticate_user!
respond_to :html
respond_to :json, :only => :show
public_flag = params[:status_message][:public]
public_flag.to_s.match(/(true)/) ? public_flag = true : public_flag = false
params[:status_message][:public] = public_flag
status_message = current_user.post(:status_message, params[:status_message])
@status_message = current_user.find_visible_post_by_id params[:id]
respond_with :location => root_url
@status_message = current_user.find_visible_post_by_id params[:id]
respond_with @status_message