about summary refs log tree commit diff
path: root/app/controllers/remote_follow_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/remote_follow_controller.rb')
-rw-r--r--app/controllers/remote_follow_controller.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/remote_follow_controller.rb b/app/controllers/remote_follow_controller.rb
index 625ce1488..2988231b1 100644
--- a/app/controllers/remote_follow_controller.rb
+++ b/app/controllers/remote_follow_controller.rb
@@ -4,7 +4,7 @@ class RemoteFollowController < ApplicationController
   layout 'public'
 
   before_action :set_account
-  before_action :gone, if: -> { @account.suspended? }
+  before_action :gone, if: :suspended_account?
 
   def new
     @remote_follow = RemoteFollow.new(session_params)
@@ -34,4 +34,8 @@ class RemoteFollowController < ApplicationController
   def set_account
     @account = Account.find_local!(params[:account_username])
   end
+
+  def suspended_account?
+    @account.suspended?
+  end
 end