« plugins/Dashboard/javascripts/dashboardObject.js » n'existait pas sur « badcd9dfa63d2b6612d9ace90e968e0077df9c70 »
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
data = clean_hash params[:status_message]
message = params[:status_message][:message]
if params[:status_message][:public] == '1'
current_user.post_to_twitter(message)
if logged_into_fb?
current_user.post_to_facebook(message, @access_token)
@status_message = current_user.post(:status_message, data)
@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]
unless @status_message
render :status => 404
else
respond_with @status_message
end
private
def clean_hash(params)
return {
:message => params[:message],
:public => params[:public]