about summary refs log tree commit diff
path: root/app/controllers/statuses_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/statuses_controller.rb')
-rw-r--r--app/controllers/statuses_controller.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/controllers/statuses_controller.rb b/app/controllers/statuses_controller.rb
deleted file mode 100644
index d6779e0a7..000000000
--- a/app/controllers/statuses_controller.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-class StatusesController < ApplicationController
-  before_action :authenticate_user!
-
-  def create
-    PostStatusService.new.(current_user.account, status_params[:text])
-    redirect_to root_path
-  rescue ActiveRecord::RecordInvalid
-    redirect_to root_path
-  end
-
-  private
-
-  def status_params
-    params.require(:status).permit(:text)
-  end
-end