diff options
Diffstat (limited to 'app/controllers/status_messages_controller.rb')
-rw-r--r-- | app/controllers/status_messages_controller.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/app/controllers/status_messages_controller.rb b/app/controllers/status_messages_controller.rb index df69ee00a..4eb40990a 100644 --- a/app/controllers/status_messages_controller.rb +++ b/app/controllers/status_messages_controller.rb @@ -7,8 +7,6 @@ class StatusMessagesController < ApplicationController respond_to :html respond_to :mobile - respond_to :json, :only => :show - # Called when a user clicks "Mention" on a profile page # @option [Integer] person_id The id of the person to be mentioned @@ -91,20 +89,6 @@ class StatusMessagesController < ApplicationController end end - def destroy - @status_message = current_user.posts.where(:id => params[:id]).first - if @status_message - current_user.retract(@status_message) - respond_to do |format| - format.js {render 'destroy'} - format.all {redirect_to root_url} - end - else - Rails.logger.info "event=post_destroy status=failure user=#{current_user.diaspora_handle} reason='User does not own post'" - render :nothing => true, :status => 404 - end - end - def show @status_message = current_user.find_visible_post_by_id params[:id] if @status_message |