diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-26 21:33:51 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-26 21:33:51 +0100 |
commit | 3689c119f0ad8d523ab8deb3c2c8ed0a9c84db6e (patch) | |
tree | a3c81d415e9eb7c043bef0cbee43200ab708146b /app/controllers | |
parent | 004382e4d09f90e5ca824996c4b20e99599bf98f (diff) |
Replacing follow requests in the settings area with in-UI column
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/follow_requests_controller.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/app/controllers/follow_requests_controller.rb b/app/controllers/follow_requests_controller.rb deleted file mode 100644 index d4368f773..000000000 --- a/app/controllers/follow_requests_controller.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -class FollowRequestsController < ApplicationController - layout 'auth' - - before_action :authenticate_user! - before_action :set_follow_request, except: :index - - def index - @follow_requests = FollowRequest.where(target_account: current_account) - end - - def authorize - @follow_request.authorize! - redirect_to follow_requests_path - end - - def reject - @follow_request.reject! - redirect_to follow_requests_path - end - - private - - def set_follow_request - @follow_request = FollowRequest.find(params[:id]) - end -end |