about summary refs log tree commit diff
path: root/app/controllers/statuses_controller.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-05 18:39:53 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-05 18:39:53 +0200
commiteec0dc46a6d6782f6aebdc759d4822ef17fd57a2 (patch)
tree0c3f88e90e1f5274df1805c97181c3d6f3e3e40a /app/controllers/statuses_controller.rb
parentae1fac006206ab28cd7cba63ab85c07a27f3d606 (diff)
PostStatusService can attach media to status, ProcessFeedService likewise
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